Results 1 to 3 of 3

Thread: What is the relation between QWidget/QPaintDevice and native "Device Context"?

  1. #1
    Join Date
    Nov 2009
    Posts
    10
    Thanks
    1
    Thanked 1 Time in 1 Post

    Question 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.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default 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
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Nov 2009
    Posts
    10
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: What is the relation between QWidget/QPaintDevice and native "Device Context"?

    Very helpful. Thank you

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.