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 334 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,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: 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)

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.