rajesh210
23rd July 2008, 11:12
When I was trying to highlight selected QTreeWidgetItem the display is not proper as expected. I expected the behaviour should highlight only the text portion of the QTreeWidgetItem, but iam getting the highlight till the end of the widget area and is not proper. I have used the below code in the constructorof my class.
QPalette palette = QPalette();
palette.setColor(QPalette::HighlightedText, Qt::white);
palette.setColor(QPalette::Highlight, Qt::blue);
setPalette(palette);
Thanks in advance.
QPalette palette = QPalette();
palette.setColor(QPalette::HighlightedText, Qt::white);
palette.setColor(QPalette::Highlight, Qt::blue);
setPalette(palette);
Thanks in advance.