Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. If I want to adhere to the platform styles, what's the best Qt stack?
Forum Updated to NodeBB v4.3 + New Features

If I want to adhere to the platform styles, what's the best Qt stack?

Scheduled Pinned Locked Moved Solved Qt for Python
3 Posts 2 Posters 293 Views 2 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.
  • RokeJulianLockhartR Offline
    RokeJulianLockhartR Offline
    RokeJulianLockhart
    wrote on last edited by
    #1

    I'm trying to get as high-level as I can whilst maintaining as close to 1:1 parity with the desktop style as I can. Originally, after seeing my LINX 1010's 32-bit EFI written in wxWidgets, I expected that github.com/wxWidgets/wxWidgets/issues/19352 would provide what I need. However, it's yet to progress in the years since I saw it, and I've since begun to consider Qt to be a superior replacement.

    Being the novice I am (all I'm familiar with are PyQt6 and PySide6's QtWidgets bindings), what's the best way to achieve this, if it's whatsoever feasible? Currently, per forum.qt.io/post/830268, I see little way to achieve Material 3 support in QtWidgets, and all of the listed platform-specific styles in doc.qt.io/qt-6/qtquickcontrols-styles.html#available-styles appear to be exactly what I desire.

    Per stackoverflow.com/revisions/21774118/1, I'll presume that I'll get native styling on KDE Plasma, my DE, too. However, I'd like to know whether these QQuickStyles can be switched between per platform, or whether the GUI must be rewritten for each style? If the former, I suppose there's no alternative to QML, so my decision is easy?

    When using a forum, remember to tag the person you are responding to, in case they are not subscribed to the thread.

    JKSHJ 1 Reply Last reply
    0
    • RokeJulianLockhartR RokeJulianLockhart

      I'm trying to get as high-level as I can whilst maintaining as close to 1:1 parity with the desktop style as I can. Originally, after seeing my LINX 1010's 32-bit EFI written in wxWidgets, I expected that github.com/wxWidgets/wxWidgets/issues/19352 would provide what I need. However, it's yet to progress in the years since I saw it, and I've since begun to consider Qt to be a superior replacement.

      Being the novice I am (all I'm familiar with are PyQt6 and PySide6's QtWidgets bindings), what's the best way to achieve this, if it's whatsoever feasible? Currently, per forum.qt.io/post/830268, I see little way to achieve Material 3 support in QtWidgets, and all of the listed platform-specific styles in doc.qt.io/qt-6/qtquickcontrols-styles.html#available-styles appear to be exactly what I desire.

      Per stackoverflow.com/revisions/21774118/1, I'll presume that I'll get native styling on KDE Plasma, my DE, too. However, I'd like to know whether these QQuickStyles can be switched between per platform, or whether the GUI must be rewritten for each style? If the former, I suppose there's no alternative to QML, so my decision is easy?

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      @RokeJulianLockhart said in If I want to adhere to the platform styles, what's the best Qt stack?:

      I see little way to achieve Material 3 support in QtWidgets

      Correct, there is no Material support in Qt Widgets

      I'd like to know whether these QQuickStyles can be switched between per platform, or whether the GUI must be rewritten for each style?

      Yes, you can switch between different styles.

      • The default styles for different platforms are listed at https://doc.qt.io/qt-6/qtquickcontrols-styles.html#default-styles
      • You can call a function and/or provide a config file to specify non-default styles: https://doc.qt.io/qt-6/qtquickcontrols-styles.html#run-time-style-selection (the config file also lets you specify style-specific options, like Material Design accent colours)

      Per stackoverflow.com/revisions/21774118/1, I'll presume that I'll get native styling on KDE Plasma, my DE, too.

      I'm not familiar with how KDE Plasma styles its controls. If it provides a Qt Quick Controls plugin, then yes you can configure your app's Qt Quick Controls to use the KDE style (using the same function/config file that I mentioned above).

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      2
      • RokeJulianLockhartR RokeJulianLockhart has marked this topic as solved on
      • RokeJulianLockhartR Offline
        RokeJulianLockhartR Offline
        RokeJulianLockhart
        wrote last edited by
        #3

        @JKSH, thank you. post/744511 explains well how to code for this.

        When using a forum, remember to tag the person you are responding to, in case they are not subscribed to the thread.

        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