"//need stylesheet for Qt5 on mac" in main.cpp

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

"//need stylesheet for Qt5 on mac" in main.cpp

ravas
Why is this needed?

    #if defined(Q_OS_MAC) && QT_VERSION > 0x050000
        //need stylesheet for Qt5 on mac
        app.setStyleSheet(
"QToolButton:checked"
"{"
"    background-color: rgb(160,160,160);"
"    border-style: inset;"
"}"
""
"QToolButton"
"{"
"    background-color: transparent;"
"}"
""
"QToolButton:hover"
"{"
"    background-color: rgb(255,255,255);"
"    border-style: outset;"
"}"
        );
    #endif
Reply | Threaded
Open this post in threaded view
|

Re: "//need stylesheet for Qt5 on mac" in main.cpp

dxli
I believe the GUI was ugly when I tested it on mac.

Do you have a mac there to test this out?

Otherwise, Ries knows better.

ravas wrote
Why is this needed?

    #if defined(Q_OS_MAC) && QT_VERSION > 0x050000
        //need stylesheet for Qt5 on mac
        app.setStyleSheet(
"QToolButton:checked"
"{"
"    background-color: rgb(160,160,160);"
"    border-style: inset;"
"}"
""
"QToolButton"
"{"
"    background-color: transparent;"
"}"
""
"QToolButton:hover"
"{"
"    background-color: rgb(255,255,255);"
"    border-style: outset;"
"}"
        );
    #endif
Reply | Threaded
Open this post in threaded view
|

Re: "//need stylesheet for Qt5 on mac" in main.cpp

ravas
No; I wish I did.