Results 1 to 5 of 5

Thread: Grabbing widget's background

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 418 Times in 411 Posts

    Default Re: Grabbing widget's background

    Just an idea, not sure if it will work, but worth a try:
    Try grabbing the desktop (QApplication::desktop()), and crop the grabbed image with the global coordinates of your child widget...

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: Grabbing widget's background

    Quote Originally Posted by high_flyer
    Just an idea, not sure if it will work, but worth a try:
    Try grabbing the desktop (QApplication::desktop()), and crop the grabbed image with the global coordinates of your child widget...
    Thanks for the tip, but I would still have to hide the child widget during the grab.
    I was hoping for something like a widget attribute or so, with which could I temporarily prevent the widget from drawing itself.
    J-P Nurmi

Similar Threads

  1. Qt3 - Multiple transparent widgets
    By bythesea in forum Qt Programming
    Replies: 4
    Last Post: 11th September 2009, 12:24
  2. Upper limit on number of widgets?
    By jdiewald in forum Qt Programming
    Replies: 1
    Last Post: 30th September 2008, 00:00
  3. Replies: 2
    Last Post: 16th May 2008, 15:39
  4. widgets behind hidden widgets not working
    By bpetty in forum Newbie
    Replies: 13
    Last Post: 7th September 2007, 21:23
  5. fixing my widget's palette
    By alanh in forum Qt Programming
    Replies: 2
    Last Post: 28th February 2006, 17: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
  •  
Qt is a trademark of The Qt Company.