[Qt-interest] QWidget Painting and Rendering queries
Nitin Mahajan
nitinm76 at yahoo.com
Wed Dec 3 10:53:41 CET 2008
HI!
1. If I want to display a QWidget on a QPaintDevice at a particular (x,y) point, how to do that? I could see that the QWidget::render() can do that, but I want to position the widget Geometry itself on the QPaintDevice instead of rendering it.
2. How can I convert a QPoint on a QPaintDevice to the one on Global co-ordinate system, just like the QWidget::mapToGlobal does?
3. This point is regarding the QWidget painting. For example I have a widget, which has some animations and hence gets painted time to time. Also I am rendering the complete widget, using QWidget::render function somewhere on a QPaintDevice. Is this widget painting followed by rendering is duplication of effort, somewhere in software? If this understanding of mine is correct, whether there would be no duplication if I make the widget invisible but just keep it rendering on the QPaintDevice alone?
regards
-Nitin
New Email names for you!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/
More information about the Qt-interest-old
mailing list