I have custom listview items in my QListView, which are drawed by a QStyledItemDelegate. They contain two lines of text which should be both customizable with stylesheets. The first is set by, which works fine. But the second should be stylable as well. Qt [mentions][1] that any designable Q_PROPERTY can be set by the stylesheet, but I wonder where to define and how to access these properties from the QStyledItemDelegate:aint method.Qt Code:
#list {font: 26px "Ubuntu";}To copy to clipboard, switch view to plain text mode
[1]: http://qt-project.org/doc/qt-4.8/sty...ect-properties
Bookmarks