Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Push button tooltip shows up as garbled image!
Forum Updated to NodeBB v4.3 + New Features

Push button tooltip shows up as garbled image!

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 3.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    winspear
    wrote on last edited by
    #1

    Hi,
    I have a push button which I am displaying like an icon by setting the border image through a style sheet. Now when I assigned a tooltip using Qt designer to this button, i shows up as garbled image. This does not happen with the default push button style with text.

    Any idea on how to fix this.

    Screenshot:

    https://docs.google.com/leaf?id=0B-kRiGKosAabMTljNzhlMjMtMTE5ZS00N2U5LWJlMjAtYzM1NWYzYmM2ZjEx&hl=en_US

    BTW I am using QT ver 4.5.1

    1 Reply Last reply
    0
    • A Offline
      A Offline
      alexisdm
      wrote on last edited by
      #2

      Your style sheet has also been applied to the tooltip because it is a child of your button.

      You should limit the scope of the CSS with a selector (e.g.: "QPushButton { border-image: ... }" instead of just "border-image: ...").

      1 Reply Last reply
      0
      • W Offline
        W Offline
        winspear
        wrote on last edited by
        #3

        That makes sense. Thanks for the quick answer.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved