Results 1 to 1 of 1

Thread: Stop QToolTip from inheriting parent's style sheet

  1. #1
    Join Date
    Aug 2013
    Posts
    32
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Stop QToolTip from inheriting parent's style sheet

    Hi.

    I have some QLabel with a custom style sheet to show some very relevant info on them. The problem is that when I hover them, the tooltip appears with the parent style. This is not only undesired, but also breaks word wrapping on the tips, rendering them useless.

    I thought: well, let's style them to "", but QToolTip doesn't seem to have a setStyleSheet() member so... is there any way to fix this, other than removing the style sheets from my QLabels?

    Thanks for any response

  2. The following user says thank you to i92guboj for this useful post:


Similar Threads

  1. How to set style sheet for stackwidget
    By mekalapandiyan@gmail.com in forum Qt Programming
    Replies: 1
    Last Post: 13th May 2013, 11:23
  2. Replies: 7
    Last Post: 12th January 2011, 22:01
  3. Problems with Gradient style used through Style sheet on ARM platform
    By puneet.narsapur in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 25th January 2010, 12:48
  4. Stop QDialog from inheriting parent's palette.
    By Avrohom in forum Qt Programming
    Replies: 3
    Last Post: 8th September 2009, 04:59
  5. How to use style sheet
    By safknw in forum Qt Programming
    Replies: 1
    Last Post: 20th November 2006, 13:05

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.