I have tried this example but I am a little bit confused in the following points:
It has no effect, font does not changes, only the first line goes in bold. What is the best way to change the font size for the second line ?
SubFont.setWeight(SubFont.weight() -2 );
Moreover, sizeHint() function is returning:
I could not understand this magic number (8). Worst, it need to be bigger for a better presentation in Win7 (12). What is the best way to calculate the size without magic numbers ?
return(QSize(iconsize.width(),iconsize.height()+fm.height() + 8));
For single lines we can use CSS styles. No option based on CSS for items using two lines ?