but through QItemDelegate we can only display the widget during editing the cell..
Is there any way to display it permanently ?
but through QItemDelegate we can only display the widget during editing the cell..
Is there any way to display it permanently ?
Well, you can use QAbstractItemView::openPersistentEditor, but it can "slow down" your view if there are a lot of data.
I would suggest to grab an editor using QPixmap::grabWidget or even better to render it using QWidget::render in the item's delegate QItemDelegate::paint method.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
Bookmarks