How to just change the font size in a QStyledItemDelegate
I style my treeview using a stylesheet. Now I want my delegate to only paint child items with a different font size and font color. All the rest should be driven by the stylesheet. Is that possible?
It seems, when I override paint() I have to do all the painting myself.
You could try to use a "QIdentityProxyModel":http://qt-project.org/doc/qt-4.8/qidentityproxymodel.html and reimplement the data function for the Qt::FontRole to return a font corresponding to your needs.
Hope it helps