Adding WaterMark to Entire QTreeView
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.