I have tried this example but I am a little bit confused in the following points:
Code:
SubFont.setWeight(SubFont.weight() -2 );
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 ?
Moreover, sizeHint() function is returning:
Code:
return(QSize(iconsize.width(),iconsize.height()+fm.height() + 8));
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 ?
For single lines we can use CSS styles. No option based on CSS for items using two lines ?