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. Why is my PyQt5 App in dark design on MacOS and light on Windows?
Forum Updated to NodeBB v4.3 + New Features

Why is my PyQt5 App in dark design on MacOS and light on Windows?

Scheduled Pinned Locked Moved Unsolved Qt for Python
4 Posts 2 Posters 482 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.
  • H Offline
    H Offline
    HeyHouBenjo
    wrote on last edited by
    #1

    Hello,
    I have a simple PyQT5-App:

    import sys
    
    from PyQt5.QtWidgets import QApplication, QWidget
    
    app = QApplication(sys.argv)
    
    window = QWidget()
    window.show()
    
    app.exec()
    

    On my Windows 10 Machine, the window is white.
    On my macOS Big Sur 11.4, the window is dark.
    In both systems, the default app style is set to dark.
    If I set the style to light, its white on both systems.

    Why is this as it is, and how can I avoid the difference on dark systems?
    I prefer the dark design.

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

      Hi and welcome to devnet,

      Which version of PyQt5 are you using ?

      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
      • H Offline
        H Offline
        HeyHouBenjo
        wrote on last edited by
        #3

        Hello,

        Sorry for the late response, my PyQt5 Version is 5.15.6

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

          You are likely hitting QTBUG-72028

          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
          1

          • Login

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