Results 1 to 2 of 2

Thread: QComboBox Popup position

  1. #1
    Join Date
    Mar 2011
    Posts
    82
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QComboBox Popup position

    I styled a QComboBox and now I find that, due to said changes, the popup list is slightly "over" the main widget when it shows. Is there a way to add, say, 1 or 2 px to the popup position?
    Attached Images Attached Images

  2. #2
    Join Date
    Sep 2011
    Location
    Manchester
    Posts
    538
    Thanks
    3
    Thanked 106 Times in 103 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QComboBox Popup position

    If you've used styleSheet() then you should be able to add padding or something like that to push it down.

Similar Threads

  1. how to set popup window at the different position
    By xiongxiongchuan in forum Qt Programming
    Replies: 1
    Last Post: 18th April 2011, 08:07
  2. Related to Popup of the QComboBox
    By ashishsaryar in forum Qt Programming
    Replies: 1
    Last Post: 10th July 2009, 16:29
  3. Replies: 3
    Last Post: 17th May 2009, 20:17
  4. QComboBox popup
    By aekilic in forum Qt Programming
    Replies: 9
    Last Post: 6th January 2009, 10:24
  5. Position of Qt::WindowFlags / Qt::Popup
    By patrik08 in forum Qt Programming
    Replies: 3
    Last Post: 3rd July 2006, 15:44

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.