Results 1 to 2 of 2

Thread: Styling QToolTip, removing corners, opacity not working.

  1. #1
    Join Date
    Aug 2007
    Posts
    27
    Qt products
    Qt4
    Platforms
    Unix/X11

    Exclamation Styling QToolTip, removing corners, opacity not working.

    I have this:
    Qt Code:
    1. border: 2px solid green;
    2. border-radius: 6px;
    3. }
    To copy to clipboard, switch view to plain text mode 

    But I end up with some pretty disturbing corners with the background color where the border is rounded.

    My question is: How can I get rid of them?

    I tryed the opacity qss attirbute but it's not working, although in the documentation it says it works. Tried it with a simple example, no transparency there.

    Bug?

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

    Default Re: Styling QToolTip, removing corners, opacity not working.

    The opacity attribute refers to window opacity, which is the opacity of the whole tooltip window. For rounded corners the window would need to be masked.
    J-P Nurmi

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.