Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. PYSIDE2 Style
Forum Updated to NodeBB v4.3 + New Features

PYSIDE2 Style

Scheduled Pinned Locked Moved Unsolved Language Bindings
3 Posts 3 Posters 1.1k 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.
  • T Offline
    T Offline
    tonyhnz
    wrote on last edited by
    #1

    I am using latest pyside2 with an app using QGuiApplication & QQmlApplicationEngine.

    I am trying to pass a style on the command line ( -style) but the style seems to make no difference to appearance of application.

    Does pyside support the style being passed on the command line when QGuiApplication is initialized?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      HI and welcome to devnet,

      AFAIK, you are using the wrong tool, QML application are not rendered through Qt's QStyle classes. You might want to take a look at the Styling Qt Quick Controls 2 chapter in Qt's documentation.

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • CristianMaureiraC Offline
        CristianMaureiraC Offline
        CristianMaureira
        wrote on last edited by
        #3

        Yes, it's supported.
        You can take a look at the following example which passes the --style argument.
        http://code.qt.io/cgit/pyside/pyside-setup.git/tree/examples/declarative/textproperties/main.py

        1 Reply Last reply
        1

        • Login

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