Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Different output on different macOS machines
Qt 6.11 is out! See what's new in the release blog

Different output on different macOS machines

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 421 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.
  • S Offline
    S Offline
    Strangelove
    wrote on last edited by Strangelove
    #1

    On my development machine (iMac running Catalina set to Dark Mode), my app looks like this:

    catalina-1.jpg

    &

    catalina-2.jpg

    (Yes, the icons are black, that's another problem...)

    If I run the exact same code on my laptop (Intel MacBook Pro running Big Sur set to Dark Mode as well), I don't get anything resembling Dark Mode, but I do get an unreadable dark font:

    big-sur-1.png

    &

    big-sur-2.png

    The toolbar is the default QMainWindow toolbar, no styling applied.

    The blue bit is a completely separate QWidget with nothing but the following stylesheet applied:

    MyWidget {
                background-color: RoyalBlue;
                border: 1px solid MediumBlue;
                border-radius: 8;
            }
    
    MyWidget QLineEdit, QTextEdit, QSpinBox {
                background-color: MediumBlue;
            }
    

    Any idea on what could be the cause of the different behaviors between machines? And maybe on how to avoid this?

    Thanks.

    EDIT: the dark color scheme above also happens when Big Sur is set to Light Mode.

    S 1 Reply Last reply
    0
    • S Strangelove

      On my development machine (iMac running Catalina set to Dark Mode), my app looks like this:

      catalina-1.jpg

      &

      catalina-2.jpg

      (Yes, the icons are black, that's another problem...)

      If I run the exact same code on my laptop (Intel MacBook Pro running Big Sur set to Dark Mode as well), I don't get anything resembling Dark Mode, but I do get an unreadable dark font:

      big-sur-1.png

      &

      big-sur-2.png

      The toolbar is the default QMainWindow toolbar, no styling applied.

      The blue bit is a completely separate QWidget with nothing but the following stylesheet applied:

      MyWidget {
                  background-color: RoyalBlue;
                  border: 1px solid MediumBlue;
                  border-radius: 8;
              }
      
      MyWidget QLineEdit, QTextEdit, QSpinBox {
                  background-color: MediumBlue;
              }
      

      Any idea on what could be the cause of the different behaviors between machines? And maybe on how to avoid this?

      Thanks.

      EDIT: the dark color scheme above also happens when Big Sur is set to Light Mode.

      S Offline
      S Offline
      Strangelove
      wrote on last edited by
      #2

      @Strangelove Apparently this was a bug in Big Sur, fixed when upgrading from 11.4 to 11.5.2.

      1 Reply Last reply
      2

      • Login

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