Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Need help for delegate.paint. Does not work for me ...
tonnot last edited by
I have a model / view schema.
I'm developing a general multipurpose delegates, and I'd want to use some custom widgets I have.
The first I have tested does not work:
@void A_delegates::paint(QPainter* painter, const QStyleOptionViewItem & option,
const QModelIndex& index) const
I see an empty cell ?
I have read the doc searching something usefull about this but without success.
Can anybody help me ? Thanks.
( the file chooser is as simple as a label plus a button. I can see it in other scenarios)
giesbert last edited by
The widget, where you call render is invisble (show is never called). This implies, it is not painted.