hello
how i can insert 2+ icons in 1 column of qtreewidgetitem?
hello
how i can insert 2+ icons in 1 column of qtreewidgetitem?
Hi Ieshir.
One way of accomplishing this is to create a custom widget and inserting it under that column in place of the icons. You can then fill the widget with as many icons as you want.
http://qt-project.org/doc/qt-4.8/qtr...#setItemWidget
ty, but can't use this
all itemWidgets is uglywith my QSS
How i can do it with qstyleditemdelegate?
Unless I'm mistaken, using delegates directly requires implementing a model/view rather than just using one of the pre-made widgets. There's a complete example of how to set up a delegate here:
http://qt-project.org/doc/qt-4.8/ite...rdelegate.html
And an introduction to model/view here:
http://qt-project.org/doc/qt-4.8/modelview.html
However, I would've thought that styling the widget should be entirely in your control. Are you sure you cannot work with what you have?
Bookmarks