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. [SOLVED] QtQuick Controls 1.0 Designer style and actual style

[SOLVED] QtQuick Controls 1.0 Designer style and actual style

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 1.3k Views 1 Watching
  • 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.
  • A Offline
    A Offline
    amund_l
    wrote on last edited by
    #1

    I've downloaded Qt Creator 2.8 Enterprise and played a bit with the new QtQuick.Controls 1.0. On thing that bugs me is that what displayed in the designer resembles the typical Windows style with for instance the green pulsating progress bar, but once I run the application the progress bar is displayed as a minimalistic metro thing.

    The following picture display the running application on the left, and the designer illustration on the right:
    !https://files.myopera.com/amundgjersoe/pics/ResultVsDesigner.png(Actual vs designer illustration)!

    The QtQuick.Controls.Styles enables me to modify the style used, but how can I easily get the standard progress bar back (and the Win 7 style i general)?

    Details:
    Qt 5.1.0 msvc2012_x64
    Qt Creator 2.8
    Windows 7 x64

    1 Reply Last reply
    0
    • A Offline
      A Offline
      amund_l
      wrote on last edited by
      #2

      Solved it! "As mentioned here as a note: ":http://doc-snapshot.qt-project.org/qt5-stable/qtquickcontrols/qtquickcontrols-overview.html We are using QApplication and not QGuiApplication in this example. Though you can use QGuiApplication instead, doing this will eliminate platform-dependent styling. This is because it is relying on the widget module to provide the native look and feel.

      So I should use QApplication, and not the project wizards QGuiApplication when wanting to get the native look.

      1 Reply Last reply
      0
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #3

        Nice catch! Thank you for sharing the solution :)

        (Z(:^

        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