PDA

View Full Version : setstyle problem



melody:p
18th September 2012, 04:11
hey guys, I need some help. please help me!

I want to set style just one dialog.
I want not to set style the other dialog.
but QWidget::setstyle is not working!
only QApplication::setstyle is working....

but using QApplication::setstyle, all dialog's shape was changed..
All example about style use QApplication::Setstyle.

I'll be crazy...help me!

ChrisW67
18th September 2012, 04:45
Which styles? What platform? How are you setting it? When are you setting it?

melody:p
18th September 2012, 05:47
custom style..I use norwegianwoodstyle that of qt example..

I set style using this code


setStyle(new norwegianwoodStyle);

and try this too.


QWidget::setStyle(new norwegianwoodStyle);


I'm setting it in dialog's constructor.