XMLWordPrintable

    Details

    • Type: Technical task
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Fix Version/s: 6.5
    • Component/s: QML: Tooling
    • Labels:

      Description

      For code bellow qmllint (0dc4fd240a2897c5c443a0ef6d84c416843e4938) --compiler generate warning:

      Warning: main.qml:14:20: Could not compile binding for onClicked: Instruction "generate_InitializeBlockDeadTemporalZone" not implemented
              onClicked: {
      

      It would be nice if qmllint can "compile" such simple assignment,
      and gives warning about not existing "open2" method.

      pragma ComponentBehavior: Bound
      import QtQuick.Controls
      import QtQuick.Window
      import QtQuick
      
      Window {
         Button {
              anchors.centerIn: parent
              text: "open popup"
              onClicked: {
                  loader.sourceComponent = loadPageComponent;
                  let dlg = loader.item as Popup;
                  dlg.open2();
              }
          }
          Loader {
              id: loader
          }
      
          Component {
              id: loadPageComponent
      
              Popup {
                  id: myDlg
                  Text {
                      id: cap
                      anchors.fill: parent
                      text: qsTr("Some message")
                  }
                  onClosed: {
                      console.log("onClosed in component");
                      loader.sourceComponent = undefined;
                  }
              }
          }
      }
      

        Attachments

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

          Activity

            People

            Assignee:
            qtqmlteam Qt Qml Team User
            Reporter:
            evgeniy_dushistov evgeniy_dushistov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes