Results 1 to 3 of 3

Thread: QComboBox

  1. #1
    Join Date
    Jan 2006
    Location
    Ohio
    Posts
    332
    Thanks
    37
    Thanked 8 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default QComboBox

    I have a QComboBox whose contents exceed the width of the widget. Is there any way to make this adjust wider when I drop down the list so I can read the entire contents? I have tried playing with the SizeAdjustPolicy settings but the appearance never changes. I am running this under Windows 7.

    Thanks!
    Todd

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QComboBox

    I think SizeAdjustPolicy is for the widget itself, not the popup.
    See if you get better results by manipulating the popup view, see QComboBox::view()

    Cheers,
    _

  3. #3
    Join Date
    Jan 2006
    Location
    Ohio
    Posts
    332
    Thanks
    37
    Thanked 8 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QComboBox

    Okay, I will look into this and give it a try!

Similar Threads

  1. Help with QComboBox
    By the9gamer in forum Newbie
    Replies: 3
    Last Post: 8th August 2012, 07:36
  2. Set value to QComboBox
    By Archa4 in forum Newbie
    Replies: 2
    Last Post: 19th May 2011, 12:46
  3. Qcombobox
    By Project25 in forum Qt Programming
    Replies: 2
    Last Post: 16th December 2009, 19:29
  4. QComboBox
    By bismitapadhy in forum Qt Programming
    Replies: 7
    Last Post: 15th July 2009, 06:01
  5. QComboBox
    By coderbob in forum Qt Programming
    Replies: 4
    Last Post: 12th December 2007, 06:38

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.