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

Crash when showing tooltip in an ApplicationWindow via attached show() function

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.7.1
    • 5.7
    • Quick: Controls 2
    • None
    • bde0f36262987b244d215bc10f68b09e4a380660

    Description

      import QtQuick 2.6
      import QtQuick.Layouts 1.3
      import QtQuick.Controls 2.0
      import Qt.labs.folderlistmodel 2.1
      
      ApplicationWindow {
          id: window
          title: "Qt Quick Controls 2 - Material Snippets"
          visible: true
      
          ToolTip {
              id: saveResultToolTip
          }
      
          footer: ToolBar {
              RowLayout {
                  anchors.fill: parent
      
                  ToolButton {
                      text: "Take Screenshot"
                      focusPolicy: Qt.NoFocus
                      onClicked: saveResultToolTip.ToolTip.show("Boop", 3000);
      //                onClicked: saveResultToolTip.open()
                  }
              }
          }
      }
      

      The use case doesn't make sense (the error printed is valid), but it shouldn't crash.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: