Results 1 to 2 of 2

Thread: Width/height property does not work in stylesheet QMainWindow::separator.

  1. #1
    Join Date
    Jul 2008
    Posts
    31
    Thanks
    1
    Thanked 5 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Width/height property does not work in stylesheet QMainWindow::separator.

    Hi,

    I want to have window separators in my application to have a thickness of 1px, like in Qt-Creator. I'm trying to use stylesheets rather than make my own style just for this one feature. I'm trying the following:

    Qt Code:
    1. QMainWindow::separator
    2. {
    3. border-color: rgb(0, 0, 0);
    4. color: rgb(0, 0, 0);
    5. width: 1px;
    6. border-width: 1px;
    7. border-style: solid;
    8. }
    To copy to clipboard, switch view to plain text mode 

    Which gives the separator a solid, 1px thick border but the separator itself is still much greater than 1px thick.

    I found this bug report:
    http://www.qtsoftware.com/developer/...ntry&id=227071

    Which suggests it's not really a priority. Is the only way to do this by making my own style? I hope not...

    Cheers, J

  2. #2
    Join Date
    Jul 2008
    Posts
    31
    Thanks
    1
    Thanked 5 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Width/height property does not work in stylesheet QMainWindow::separator.

    I looked into QtCreator's code to see how it is achieved there, and a custom 'MiniSplitter' is used. I presume this is a well known issue then?

    Anyone?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.