+ Reply to Thread
Results 1 to 3 of 3

Thread: Save content of widget to pixmap

  1. #1
    Join Date
    Jun 2006
    Location
    Vietnam
    Posts
    59
    Thanks
    17
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Save content of widget to pixmap

    On a widget, I add controls to widget. Please help me how to copy all contents of this widget to pixmap. Thanks.

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 333 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Save content of widget to pixmap

    QPixmap::grabWindow might help you. Use it to make a pixmap of the widget.

    For winId , you can use the QWidget::winId function. But it might have portabilities issues. Refer to the docs

    Hope this helps

  3. The following user says thank you to aamer4yu for this useful post:

    vql (5th April 2008)

  4. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,317
    Thanks
    3
    Thanked 4,999 Times in 4,779 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Blog Entries
    4
    Wiki edits
    10

    Default Re: Save content of widget to pixmap

    QPixmap::grabWidget() might be better than grabWindow.

  5. The following user says thank you to wysota for this useful post:

    vql (5th April 2008)

+ Reply to Thread

Similar Threads

  1. Tricky problem with ARGB widget / UpdateLayeredWindow
    By nooky59 in forum Qt Programming
    Replies: 3
    Last Post: 21st February 2008, 10:35
  2. Replies: 8
    Last Post: 20th September 2007, 09:10

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