Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Adding WaterMark to Entire QTreeView
gouthami last edited by gouthami
How can I add a watermark centered in the QTreeView when there are no children items in it?
eventually the watermark should disappear after adding childrenitems. one way is i have used setIndexWidget for the first row..where widget is QTextEdit.
Hi and welcome to devnet,
One thing that you could try is to subclass QTreeView and reimplement the paintEvent function to draw your watermark above the rest of the supper.