Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-62890

Add show() function as a regular (non-attached) ToolTip function

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P3: Somewhat important
    • 5.12.0 Alpha
    • None
    • Quick: Controls 2
    • None
    • 63899f3185b443ba3cdb7f34cf09f0ac01c5c037

    Description

      I'm using a custom, non-attached ToolTip to display different types of information to the user. I need it to be non-attached because I want to position it manually. The issue is that I need to set a bunch of properties and then call open()

      infoToolTip.text = "Reloaded assets"
      infoToolTip.timeout = 1000
      infoToolTip.open()
      
      // ...
      
      infoToolTip.text = "Did some other stuff with text that takes a longer time to read"
      infoToolTip.timeout = 1500
      infoToolTip.open()
      

      rather than call show() like I can with an attached ToolTip. So the suggestion is to add show():

      infoToolTip.show("Reloaded assets", 1000)
      
      // ...
      
      infoToolTip.show("Did some other stuff with text that takes a longer time to read", 2000)

      Attachments

        For Gerrit Dashboard: QTBUG-62890
        # Subject Branch Project Status CR V

        Activity

          People

            yulong.bai Bai Yulong
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes