mattia
7th January 2008, 08:19
Hello, i have a QTreeWidgetItem * item and i'd like to set the color font in red and the font style in bold.
I made in this way
QFont font("" , 9 , QFont::Bold );
item->setFont( 0, font );
but i dont know how to set the font in red color, QTreeWidgetItem does not have palette() and setPalette() methods and i dont know another way to do it.
any hint?
thx
I made in this way
QFont font("" , 9 , QFont::Bold );
item->setFont( 0, font );
but i dont know how to set the font in red color, QTreeWidgetItem does not have palette() and setPalette() methods and i dont know another way to do it.
any hint?
thx