Here's an example demonstrating how to set a tooltip (as a description) for QDateEdit:
import sys
from PyQt5.QtWidgets import QApplication, QMainWindow, QDateEdit, QVBoxLayout, QWidget
from PyQt5.QtCore import QDate
class App(QMainWindow):
def __init__(self):
super().__init__()
self.initUI()
def initUI(self):
self.setGeometry(100, 100, 300, 200)
layout = QVBoxLayout()
self.date_edit = QDateEdit(QDate.currentDate(), self)
self.date_edit.setToolTip("Select a date from the calendar") # Set a tooltip as a description
layout.addWidget(self.date_edit)
central_widget = QWidget(self)
central_widget.setLayout(layout)
self.setCentralWidget(central_widget)
if __name__ == "__main__":
app = QApplication(sys.argv)
window = App()
window.show()
sys.exit(app.exec_())
In this example, when you hover over the QDateEdit widget, a tooltip with the text "Select a date from the calendar" will appear, acting as a description.
django-testing area .net-2.0 xunit.net actionfilterattribute highlight v8 jspdf clone nw.js