Results 1 to 2 of 2

Thread: Qt StyleSheet positioning

  1. #1
    Join Date
    Mar 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Qt StyleSheet positioning

    Can I handle control position via Qt StyleSheet
    something like that:
    Qt Code:
    1. ...
    2. QPushButton#pushButton {
    3. position: absolute;
    4. background-color: rgb(89, 77, 255);
    5. top: 200px;
    6. left: 200px;
    7. }
    8. ...
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,709
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Qt StyleSheet positioning

    my understanding is that the 'position' property is for sub controls not actual "widgets". (like the down arrow of a combobox)
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Replies: 0
    Last Post: 26th September 2011, 20:49
  2. help positioning QGraphicsProxyWidget?
    By Scott Shiff in forum Qt Programming
    Replies: 1
    Last Post: 25th January 2010, 00:13
  3. Positioning QGraphicsWidget
    By jasper_ferrer in forum Qt Programming
    Replies: 3
    Last Post: 22nd September 2009, 15:34
  4. positioning sub windows in an mdiarea
    By eric_vi in forum Qt Programming
    Replies: 2
    Last Post: 21st August 2009, 00:08
  5. QGraphicsScene item positioning
    By been_1990 in forum Qt Programming
    Replies: 7
    Last Post: 28th July 2009, 13:11

Tags for this Thread

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.