Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Problems with borders on MacOs



  • Hi all,

    I'm porting a project from windows to Mac but I'm having a lot of problems with the .ui files.
    In particular I set the current stylesheet on some QDialog:
    "border: 1px solid white;"

    Unfortunately the effect is the following:
    Schermata 2019-12-12 alle 11.27.30.png

    I can't understand why the lines does not touch. I have the same effect in all the QDialogs with this stylesheet.

    Does somebody have any advice?
    Thanks in advance.


  • Lifetime Qt Champion

    Hi,

    What version of Qt ?
    What version is macOS ?
    Can you provide a minimal compilable example that shows that ?



  • I'm using QT 5.12.2 clang 64bit on MAC 10.13.6.
    To reproduce the problem I just create a new project with simply a black QMainWindow with a QPushButton that creates a new Dialog with stylesheet

    border: 1px solid white;
    

    The way I create the Dialog is simply this

    void MainWindow::on_pushButton_clicked()
    {
        Dialog *newdial = new Dialog(this);
        newdial->setModal(true);
        newdial->show();
    }
    

    And in this way you will get the corner like the one in the pic above.


Log in to reply