PDA

View Full Version : How to put image on QSplitter? (Qt3)



Opilki_Inside
5th December 2008, 14:42
I would like to use "skins" in my application, but I have no idea of how to put image on QSplitter. Could anyone help me with this?

Thanks in advance!

tinsuke
5th December 2008, 19:27
I don't know what it has to do with skins feature, but to put images on a QSplitter you could easily create a QLabel, set its Pixmap (image) with setPixmap and add it to the QSplitter. You could change the displayed image arbitrary by calling yourLabel->setPixmap(image).

Opilki_Inside
7th December 2008, 18:31
I don't know what it has to do with skins feature, but to put images on a QSplitter you could easily create a QLabel, set its Pixmap (image) with setPixmap and add it to the QSplitter. You could change the displayed image arbitrary by calling yourLabel->setPixmap(image).

It looks proposed sulution doesn't work for Qt3 :confused:

I tried this way:

QLabel* l = new QLabel(_splitter);
l->setPixmap(pixmap);

and this:

_splitter->setPaletteBackgroundPixmap(pixmap)