What is the relation between QWidget/QPaintDevice and native "Device Context"?
Hello again. I was wondering what is the mapping between QWidget/QPaintDevice and native device contexts. Supposedly we have to render 1 top level window with 10 widgets of various kinds. Does each widget map to 1 separate native DC?
In Java Swing, as far as I know, only the top level windows have a native device context but the rest of components (widgets) do not.
Re: What is the relation between QWidget/QPaintDevice and native "Device Context"?
Since some time in Qt only the top-level window is tied to a real widget (or device context, if you may) unless you explicitly or implicitly ask to be otherwise. You may search for the term "Aliens" regarding Qt.
http://labs.trolltech.com/blogs/2007...of-all-flicker
Re: What is the relation between QWidget/QPaintDevice and native "Device Context"?
Very helpful. Thank you :)