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. Tooltips not showing after combo box content is updated dynamically
Qt 6.11 is out! See what's new in the release blog

Tooltips not showing after combo box content is updated dynamically

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 1 Posters 595 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.
  • R Offline
    R Offline
    Robert Hairgrove
    wrote on last edited by
    #1

    On Linux Ubuntu 22.04, desktop app built with Qt 5.15.5, I have a dialog with many widgets including a combo box which is initially empty. I have tooltips for most of these widgets which are generated dynamically since they contain HTML text, and in order to ease translation of these, I do not set them in Qt Designer (which I use to design the dialog), but only at runtime when the dialog is constructed. If the user changes languages, the tooltips are also regenerated.

    The combo box displays a list of HTML files for a given directory which can be browsed by the user. When the dialog opens and the combo box is empty, all of the tooltips are shown correctly.

    After browsing for a directory and choosing a file, none of the tooltips show any more.

    Is this a known bug? I couldn't find anything about it.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Robert Hairgrove
      wrote on last edited by
      #2

      UPDATE: I had called "QComboBox::showPopup()" after loading the file names; when I commented this out, the tooltips show up normally.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Robert Hairgrove
        wrote on last edited by Robert Hairgrove
        #3

        UPDATE 2: If I do call "QComboBox::showPopup()", after selecting the first item, the tooltips don't show.

        If I select a second item, the tooltips reappear normally.

        This looks like a bug related to the "QComboBox::showPopup()" function?

        1 Reply Last reply
        0
        • R Offline
          R Offline
          Robert Hairgrove
          wrote on last edited by
          #4

          UPDATE 3: This doesn't happen if I build with Qt 6.4.3.

          1 Reply Last reply
          0
          • R Offline
            R Offline
            Robert Hairgrove
            wrote on last edited by
            #5

            UPDATE 4: If I build with Qt 5.15.5 and run the app with the Xorg platform, the bug does not happen.

            It must be Wayland related, since previously I had been using the Ubuntu default desktop (which is Wayland).

            I am marking this as SOLVED for now, but I will probably file a bug report.

            1 Reply Last reply
            0
            • R Robert Hairgrove has marked this topic as solved on

            • Login

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