PDA

View Full Version : How to remove BackgroundPixmap from MacStyle QWizard?



AndyBrice
15th December 2013, 00:03
If you create a QWizard with MacStyle it wastes loads of space with a "background" image on the left of every page. I want to get rid of this images and the panel/frame that contains it, so I have more usable space. This doesn't work:

setPixmap( QWizard::BackgroundPixmap, QPixmap() );

I have spent hours searching and poking through the source, but I can't get an answer to this one, apart from calling:

setWizardStyle(QWizard::ClassicStyle);

Which is not what I want. I want to keep the Mac style.

I tried listing all the children and selectively hiding them, but that didn't work.

See also:
http://stackoverflow.com/questions/6749607/resize-restyle-qwizard-under-os-x/10917599

Hoping someone can impart some wisdom.

I am using Qt 4.8.5 on Mac OS X.