Details
-
Bug
-
Resolution: Invalid
-
P3: Somewhat important
-
4.3.2
-
None
Description
The following example reproduces some strange behavior with QTreeView.
start app
click on the second item in the second column
this will start renaming
click on the lineedit under the tree widget
notice that only the recently renamed column is painted in the inactive Highlight color.
One would at the very least expect the columns to be painted in the same color.
Another question is why it's painted with the Inactive role at all since the window still is active. This is not in accordance with the documentation though it seems to be what Microsoft Explorer does.
http://doc.trolltech.com/4.3/qpalette.html#details
#include <QtGui>
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0)
: QMainWindow(parent)
};
#include "main.moc"
int main(int argc, char **argv)
{
QApplication a(argc, argv);
QPalette pal = a.palette();
pal.setColor(QPalette::Inactive, QPalette::Highlight, Qt::green);
a.setPalette(pal);
MainWindow w;
w.show();
return a.exec();
}