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

""CheckLabel.rightPadding" is not available in QtQuick.Controls.impl 255.255" when running ./default -input [...]/tst_buttongroup.qml

    XMLWordPrintable

Details

    Description

      14:59:37: Starting /home/mitch/dev/qt-dev2-debug/qtquickcontrols2/tests/auto/controls/default/tst_default -input /home/mitch/dev/qt-dev2/qtquickcontrols2/tests/auto/controls/data/tst_buttongroup.qml...
      file:///home/mitch/dev/qt-dev2/qtquickcontrols2/tests/auto/controls/data/tst_buttongroup.qml:250:13: Type CheckBox unavailable
                       property CheckBox control1: CheckBox { ButtonGroup.group: group }
                       ^
      file:///home/mitch/dev/qt-dev2-debug/qtbase/qml/QtQuick/Controls/Default/CheckBox.qml:87:9: "CheckLabel.rightPadding" is not available in QtQuick.Controls.impl 255.255.
                   rightPadding: control.indicator && control.mirrored ? control.indicator.width + control.spacing : 0
      

      Steps to reproduce:

      1. Checkout https://codereview.qt-project.org/c/qt/qtquickcontrols2/+/297488/60/
      2. Run the default test with -input /home/mitch/dev/qt-dev2/qtquickcontrols2/tests/auto/controls/data/tst_buttongroup.qml

      CheckLabel is QQuickCheckLabel, which is derived from QQuickText, where rightPadding is declared as:

          Q_PROPERTY(qreal rightPadding READ rightPadding WRITE setRightPadding RESET resetRightPadding NOTIFY rightPaddingChanged REVISION(2, 6))
      

      I'm using the latest version of Qt Quick by not specifying a version, so it should just work:

      https://codereview.qt-project.org/gitweb?p=qt/qtquickcontrols2.git;a=blob;f=src/imports/controls/default/CheckBox.qml;h=d9c92a56be44382c97bede91c3f62f1e3ca03220;hb=refs/changes/88/297488/60

      Attachments

        Issue Links

          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
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes