Results 1 to 8 of 8

Thread: Transparency with QWinWidget

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2009
    Posts
    4
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Transparency with QWinWidget

    setMask is working fine, so I will just look into how Qt does the anti-aliasing on fonts and try get the text rendering a bit nicer without the white silhouette.

  2. #2
    Join Date
    Dec 2010
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Question Re: Transparency with QWinWidget

    Hi, I'm having exactly the same problem, none of the following ways works for me, any suggestions? Thanks in advance.

    QWinWidget* pParentWidget = new QWinWidget(hParent);

    1. pParentWidget->setAttribute(Qt::WA_TranslucentBackground, true);
    pParentWidget->setWindowFlags(Qt::FramelessWindowHint);

    2. pParentWidget->setWindowOpacity(0);

    3. QPalette p(pParentWidget->palette());
    p.setColor(QPalette::Background, Qt::transparent);
    pParentWidget->setPalette(p);

    4. setMask isn't suitable for me, as the UI elements are dynamic.(e.g. tree view)

Similar Threads

  1. Tree selection - icon transparency (lack of)
    By MrGarbage in forum Qt Programming
    Replies: 1
    Last Post: 8th January 2008, 21:48
  2. Transparency ... Again
    By EricF in forum Qt Programming
    Replies: 4
    Last Post: 1st December 2007, 19:52
  3. Speed, transparency, and drop issues with QGraphicsView
    By jefferai in forum Qt Programming
    Replies: 16
    Last Post: 30th June 2007, 16:14
  4. [QT3+XP] transparency and mouse tracking
    By incapacitant in forum Newbie
    Replies: 9
    Last Post: 17th February 2006, 18:49
  5. transparency
    By roms18 in forum Qt Programming
    Replies: 2
    Last Post: 16th February 2006, 19:38

Tags for this Thread

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.