PDA

View Full Version : Some colors changes in QT forms without pattern



eneias
9th May 2012, 15:45
Sometime the border color of QGroupBox is changed when i open the form (like modal). This not happens all times. The color is correct in most times.
I dont understand why this happens...

I'm using QT 4.8

See picture attached for more infos

7709

this behavior is like:
QPalette p = ui.gbOpcoes->palette();
p.setColor(QPalette::Light, Qt::red);
ui.gbOpcoes->setPalette(p);

Somebody knows what is happens???

Spitfire
15th May 2012, 16:25
Would help if you could create a complable example of your problem.
I'm guessing you've messed up something, somewhere :) and creating the demo may show you where you've gone wrong.