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

Failing to run QML RangeSlider customization example

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.14.2, 5.15.0 Beta1
    • 5.14.0
    • Quick: Controls 2
    • None
    • Ubuntu 16.04, PC, Gnome
    • Linux/X11
    • c5c945006244b6bf5189f1949a009f70ebd51d7a (qt/qtquickcontrols2/5.14)

    Description

      I was trying to repeat the example QML code inĀ https://doc.qt.io/qt-5/qtquickcontrols2-customize.html#customizing-rangeslider

      I've simply opened up the PySide2 source examples/declarative/signals/pytoqml1/view.qml file, and replaced the control that is placed on the static rectangle (I also disabled the timer in the project so that it doesn't interfere).

      I am getting "ReferenceError: first is not defined" style errors involving both "first" and "second".

      To be fair, I would be surprised if it was related to the fact that I was using PySide2, but still a factor to consider.

      I'll try (I'm a complete noob to QML) adding "control" in front of the first.... references within the handle x/y position updating code, see what happens, in that case it may likely turn out to be a documentation problem and I will try to follow up with that information soon.

      Attachments

        1. main.py
          3 kB
        2. view.qml
          4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mitch_curtis Mitch Curtis
            brezniczky Janos Brezniczky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes