set color in QTreeWidgetItem text
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
Code:
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
Re: set color in QTreeWidgetItem text
Re: set color in QTreeWidgetItem text
thx i did it in this way
Code:
item->setForeground( 0 , b );
item->setFont( 0, font );