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. Problems with borders on MacOs

Problems with borders on MacOs

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 282 Views 1 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.
  • D Offline
    D Offline
    davidesalvetti
    wrote on last edited by
    #1

    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.

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

      Hi,

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

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

        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.

        1 Reply Last reply
        0

        • Login

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