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. Controlling Tooltip in a QCombobox using QT Designer
Forum Updated to NodeBB v4.3 + New Features

Controlling Tooltip in a QCombobox using QT Designer

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 772 Views
  • 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.
  • M Offline
    M Offline
    Math Enthusiast
    wrote on last edited by
    #1

    Hi,

    I have created a QComboBox in QT Desinger.
    Now,I just want to display a tooltip,when we point the cursor on the triangular button in the combo box i.e. at the corner most of the combo box.If I point my cursor on any other location in the combo box, I dont want to display the tooltip.

    Can we do this? Like,do we have control over certain portion in the combobox (or) we can set tooltip only for the entire combobox?

    Thanks in Advance!

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      @Math-Enthusiast said in Controlling Tooltip in a QCombobox using QT Designer:

      Can we do this?

      Yes, just subclass QComboBox reimplement event and if the type() is QEvent::ToolTip and the mouse is not on the arrow ignore the event, otherwise call the base class

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      2

      • Login

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