Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. qmlscene and Qt Quick Controls 2: styling
QtWS25 Last Chance

qmlscene and Qt Quick Controls 2: styling

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
controls 2stylingqmlscene
5 Posts 2 Posters 2.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    morte
    wrote on last edited by
    #1

    Hello, i noticed that in Qt 5.8 beta qmlscene preview util supports Qt Quick Controls 2 but i don't managed how to apply styling (Universal, Material), is it possible and how?

    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      @morte Perhaps setting QT_QUICK_CONTROLS_STYLE environment variable.

      157

      M 1 Reply Last reply
      0
      • p3c0P p3c0

        @morte Perhaps setting QT_QUICK_CONTROLS_STYLE environment variable.

        M Offline
        M Offline
        morte
        wrote on last edited by
        #3

        @p3c0 said in qmlscene and Qt Quick Controls 2: styling:

        @morte Perhaps setting QT_QUICK_CONTROLS_STYLE environment variable.

        im tried setting system-wide environment variable and QtCreator environment option for qmlscene both has no effect

        1 Reply Last reply
        0
        • p3c0P Offline
          p3c0P Offline
          p3c0
          Moderators
          wrote on last edited by p3c0
          #4

          @morte Are you sure you are setting it correctly ? I just tried it with Qt 5.7 and it works. Can you try the same with Qt 5.7 ?

          export QT_QUICK_CONTROLS_STYLE=universal; /opt/Qt5.7.0/5.7/gcc_64/bin/qmlscene Test.qml
          Or
          export QT_QUICK_CONTROLS_STYLE=material; /opt/Qt5.7.0/5.7/gcc_64/bin/qmlscene Test.qml
          
          

          157

          M 1 Reply Last reply
          0
          • p3c0P p3c0

            @morte Are you sure you are setting it correctly ? I just tried it with Qt 5.7 and it works. Can you try the same with Qt 5.7 ?

            export QT_QUICK_CONTROLS_STYLE=universal; /opt/Qt5.7.0/5.7/gcc_64/bin/qmlscene Test.qml
            Or
            export QT_QUICK_CONTROLS_STYLE=material; /opt/Qt5.7.0/5.7/gcc_64/bin/qmlscene Test.qml
            
            
            M Offline
            M Offline
            morte
            wrote on last edited by
            #5

            @p3c0 said in qmlscene and Qt Quick Controls 2: styling:

            @morte Are you sure you are setting it correctly ? I just tried it with Qt 5.7 and it works. Can you try the same with Qt 5.7 ?

            export QT_QUICK_CONTROLS_STYLE=universal; /opt/Qt5.7.0/5.7/gcc_64/bin/qmlscene Test.qml
            Or
            export QT_QUICK_CONTROLS_STYLE=material; /opt/Qt5.7.0/5.7/gcc_64/bin/qmlscene Test.qml
            
            

            No, thats on Windows. Now it's start to work after i add environment variable in QtCreator for "Desktop" kit instead of setting it for external tool. Thanks for your assistance.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved