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

Include Overlay Qml type in Material, Universal (...) themes

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 6.4.0 Beta1
    • Quick: Controls 2
    • None
    • All

    Description

      Overlay.modal can be used for customizing the dialog background:

      import QtQuick 2.12
      import QtQuick.Controls 2.3
      
      Dialog {
      	// Prevent background dimming
      	Overlay.modal: Item {
      	}
      }
      

      But this works only with the "QtQuick.Controls" import. Using "QtQuick.Controls.Material", "QtQuick.Controls.Univeral" (...?) does not work:

      import QtQuick 2.12
      import QtQuick.Controls.Material 2.3
      
      Dialog {
      	// Prevent background dimming
      	Overlay.modal: Item {
      	}
      }
      

      Please extend the themes so that the Overlay can also be used there (so that the qmlint/qmlsc compilation fix can be used: https://www.qt.io/blog/compiling-qml-to-c-qtquick-controls-and-optional-imports).

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: