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. setting style in python3/pyside2

setting style in python3/pyside2

Scheduled Pinned Locked Moved Solved Language Bindings
2 Posts 2 Posters 790 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.
  • N Offline
    N Offline
    nullbuil7
    wrote on 15 Dec 2019, 11:44 last edited by
    #1

    how do i change the style in python i used this command from c++ but didn't work:
    mainWindow.setStyle(QStyleFactory.create("Fusion"))

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 15 Dec 2019, 11:49 last edited by
      #2

      Hi
      Should it not be on the application like ?
      QtGui.QApplication.setStyle(QtGui.QStyleFactory.create('Fusion'))

      1 Reply Last reply
      2

      1/2

      15 Dec 2019, 11:44

      • Login

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