Results 1 to 15 of 15

Thread: Qt4.1 Transparent Widget

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt4.1 Transparent Widget

    No. Don't touch the paint event. You only need setMask() just like jpn suggested. And better put it in resize event and not in the constructor, just in case. But it should still work with the constructor (the same contents as in the resize event).

  2. #2
    Join Date
    Jun 2006
    Posts
    17
    Thanks
    6

    Default Re: Qt4.1 Transparent Widget

    Ok, one last (stupid) question :
    With the region stuff, adding and taking off some parts, I need to know the position of my buttons to tell the mask not to take them.
    But as I use them with a Layout, that s the layout which knows where exactly they are and I don t have an idea about how knowing their coordonates, pushbutton1.x() does not exists ...

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

    Default Re: Qt4.1 Transparent Widget


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

    djoul (18th July 2006)

Similar Threads

  1. Pin/Unpin Dock Widget
    By charlesD in forum Newbie
    Replies: 1
    Last Post: 21st June 2006, 06:57
  2. Transparent TextEdit or Widget
    By showhand in forum Qt Programming
    Replies: 8
    Last Post: 26th May 2006, 05:58
  3. Replies: 4
    Last Post: 24th March 2006, 22:50
  4. transparent widget
    By hijinks in forum Qt Programming
    Replies: 2
    Last Post: 20th February 2006, 09:43
  5. [Qt 4.1.0] Split a widget on demand
    By Townk in forum Qt Programming
    Replies: 3
    Last Post: 17th February 2006, 14:16

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.