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

Qt Quick UI Forms implement signal handlers not action

    XMLWordPrintable

    Details

    • Platform/s:
      Windows

      Description

      when use Loader load form 

      Loader

      { id: myLoader source: "Page3Form.ui.qml" }

       

      the implement in Page3.qml not active,

      bnSave is the delaybutton

      in Page3.qml

      Page3Form {Page3Form {    bnSave.onActivated: {    beDriver.bnSaveClicked() }}

       

      now , I do it use like below:

       

      in Page3Form.ui.qml

      DelayButton

      { id: bnSave x: 454 y: 289 width: 122 height: 56 text: qsTr("Save") font.pointSize: 12 // @disable-check M222 onActivated: beDriver.bnSaveClicked() }

      which beDriver is a QObject written by C++.

      if Page3Form define in main.qml ,it is OK. But i want to use Loader to load many page 

      to show diffent page.

       

       

        Attachments

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

          Activity

            People

            • Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              tornadocean Jun Chiang
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes