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

Dialog of QtQuick.Dialogs not valid

    XMLWordPrintable

Details

    • 9ac6494f1 (dev), 672bde49e (6.9)

    Description

      can't use Dialog of QtQuick.Dialogs in qml.

      Archlinux/KDE

      command: qml6 a.qml 

      result:
      QQmlApplicationEngine failed to load component
      file:///tmp/a.qml:9:2: Dialog is not a type
      qml: Did not load any objects, exiting.

       

      code:

       

      import QtQuick.Controls
      import QtQuick.Dialogs as Dlg
      
      ApplicationWindow {
      	visible: true
      	width: 800
      	height: 480
      	Button {
      		text: "open"
      		onClicked: dlg.open()
      	}
      	Dlg.Dialog {
      		id: dlg
      	}
      }

       

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            niqingliang2003 niqingliang2003
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes