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

qmlscene -style Material says Material is not supported (but env var works)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.1
    • None
    • Linux/X11

    Description

      qmlscene -style material file.qml

      prints

      QApplication: invalid style override passed, ignoring it.
      Available styles: Windows, Fusion

      But this is clearly documented as the preferred way to try different styles (see docs for using-styles-in-qt-quick-controls-2).   However, even though the above error message appears,  the Material style does in fact seem to be used.     No error occurs if the Windows or Fusion style is specified, only Material.

      So something must be wrong with the configuration which prevents qmlscene from realizing that the Material style is available.

      Note: Using the environment variable method works without error:

      QT_QUICK_CONTROLS_STYLE=Material qmlscene file.qml

      STEPS TO REPRODUCE (using /usr/bin/env to avoid extraneous inflences):

      1. env -i DISPLAY=$DISPLAY PATH=/bin:/usr/bin XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR /path/to/Qt/5.12.1/gcc_64/bin/qmlscene -style material file.qml

      This was using a new, clean install of 5.12.1 alone.

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mitch_curtis Mitch Curtis
            jimav Jim Avera
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes