Results 1 to 2 of 2

Thread: adding butting to drop down Item of QComboBox

  1. #1
    Join Date
    Nov 2012
    Posts
    35
    Thanks
    1
    Thanked 7 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Question adding butting to drop down Item of QComboBox

    combobox.png
    How do I have a button like shown in the image below "Other" that it stays there even if number of items continues to increase.
    comboBox_dropDowWithButton.png

  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: adding butting to drop down Item of QComboBox

    I see a couple of options:

    - insert new entries before the last one
    - use your own list model and ensure that the "Other" entry is always the last
    - use your own view (QComboBox::setView) and let it show the entry additional to the items in the model

    Cheers,
    _

Similar Threads

  1. Replies: 1
    Last Post: 20th June 2013, 06:24
  2. Replies: 0
    Last Post: 10th March 2011, 11:44
  3. QComboBox drop-down hiding
    By bpetty in forum Newbie
    Replies: 1
    Last Post: 17th August 2007, 02:26
  4. Editing and adding entries to a QComboBox
    By bruccutler in forum Newbie
    Replies: 1
    Last Post: 29th May 2007, 17:13
  5. Adding QComboBox to QTableWidget very slow
    By munna in forum Qt Programming
    Replies: 2
    Last Post: 13th July 2006, 15:45

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.