PDA

View Full Version : paintEvent, QString to QPixmap, QLabel



TheKedge
5th February 2007, 12:43
Hello again,

is there a way to turn text into something which paintEvent() can draw?

Or, to get the representation of text() in a QLabel as a QPixmap?

related question:
How can I get a QLabel so that I have a transparent backround - Just the text 'on the desktop'.

I'm thinking about something aloing the lines of the shapedClock example...

thanks
K

jpn
5th February 2007, 13:04
is there a way to turn text into something which paintEvent() can draw?

QPainter::drawText()



Or, to get the representation of text() in a QLabel as a QPixmap?

I'm not sure what do you mean but maybe QPixmap::grabWidget().



How can I get a QLabel so that I have a transparent backround - Just the text 'on the desktop'.

QWidget::setMask()