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

Compile-time warnings in Qt Quick Controls - Attached Style Properties Example

    XMLWordPrintable

Details

    • ecdbc277a (dev), 7301e4d5b (6.5)

    Description

      The new example at https://doc-snapshots.qt.io/qt6-6.5/qtquickcontrols-attachedstyleproperties-example.html produces fixable compile-time warnings:

      Info: Label.qml:4:1: Unused import [unused-imports]
      import QtQuick
      ^^^^^^
      
      Warning: Popup.qml:46:16: Unqualified access [unqualified]
              color: control.MyStyle.backgroundDimColor
                     ^^^^^^^
      Info: Set "pragma ComponentBehavior: Bound" in order to use IDs from outer components in nested components.
      
      Warning: Popup.qml:46:16: Could not compile binding for color: Cannot access value for name control [compiler]
              color: control.MyStyle.backgroundDimColor
                     ^^^^^^^
      

      Attachments

        Activity

          People

            skoh-qt Sze Howe Koh
            skoh-qt Sze Howe Koh
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: