PDA

View Full Version : Style Sheet on QWizard



desch
6th December 2007, 16:20
Hi Everybody :)

It seems that's very hard to set a style sheet on buttons in the QWizard;

I try so set the style sheet on buttons , like "back, "Next", "Cancel", ... and only those buttons; I didn't succeed

I have tested with settings "setObjectName" or "setProperty", to identify those buttons, but nothing happens.

If someone has an idea?

Thanks,

David

jpn
6th December 2007, 16:51
wizard->button(QWizard::BackButton)->setStyleSheet("...");
?

desch
6th December 2007, 17:12
Ok , great it works

like that :

wizard->button(QWizard::BackButton)->setStyleSheet("QAbstractButton{ border-image: url(:/myImage);}");

Is there a way to set a mandatory field like


wizard->button(QWizard::BackButton)->setProperty("class","applyStyle");

or


wizard->button(QWizard::BackButton)->setObjectName("buttonColor");

and set a general style for the whole application with these properties.

Thanks

David