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

Child ToolTip ignores delay and timeout properties

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.7.1
    • 5.7.0
    • Quick: Controls 2
    • None
    • bfaa08a335f21e6fdf533969779f806883fe27b0

    Description

      When you create a ToolTip instance child item in a [parent] item, the delay and timeout properties will be ignored and the tooltip will appear immediately.

      Example code (Remove commented lines and comment the attached properties to get correct results):

      import QtQuick 2.7
      import QtQuick.Controls 2.0
      
      Item {
          Button {
              text: '1234567890'
              width: 80
              height: 30
              x: 40
              y: 30
              hoverEnabled: true
      
              //ToolTip.delay: 1000
              //ToolTip.timeout: 5000
              //ToolTip.text: text
              //ToolTip.visible: hovered
      
              ToolTip {
                  delay: 1000
                  timeout: 5000
                  text: parent.text
                  visible: parent.hovered
              }
          }
      }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            safa alfulaij Safa Alfulaij
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes