-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.6.2
-
None
-
Mac OS 10.6.3 Snow Leopard, Qt Creator 2.0beta
-
18bb0125a246a0cfb4a1856e415624a25adb57ab
The documentation for QAbstractItemDelegate::createEditor states that in order for an editor widget to be displayed with an opaque background one must specify setAutoFillBackground(false) on it. However, I can't seem to place an editor widget without it completely covering the custom display code I have in my ::paint method of the QItemDelegate. However, if I also maintain a call to QItemDelegate::paint(...) the default data (Qt::DisplayRole, Qt::DecorationRole) will be displayed with the widget opaquely.
I have attached a sample project that implements a very simple QStringList based model that returns only a string for data, and a simple QItemDelegate. The expected behavior I believe is for the QPushButton editor widget to show on top of the display that is currently in each row, without seemingly painting a white background (or blue in this case for selection) behind it.