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

qml engine does not load style in imports folder

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 5.15.11
    • Quick: Controls 2
    • None

    Description

      please see the attached demo

      https://doc.qt.io/qt-5/qtquickcontrols2-customize.html#definition-of-a-style
      based on this

      the style will look up the imports directory, but it seems does not.

      btw, move the :/imports/MyStyle to :/MyStyle can fix it, demo works as expected(the border of Button become red)

      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
            jiu shanheng jiu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes