Results 1 to 4 of 4

Thread: QComboBox not showing all items

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Nov 2007
    Posts
    11

    Default Re: QComboBox not showing all items

    Qt Code:
    1. void MyObj::FillComboBox(const std::vector<std::string> &items)
    2. {
    3. for(size_t i = 0 ; i < items.size() ; i++)
    4. {
    5. cmbItems->addItem(QString::fromUtf8(items[i].c_str()));
    6. }
    7.  
    8. fprintf(stdout, "items count %d\n", items.size());
    9. fprintf(stdout, "cmb item count %d\n", cmbItems->count());
    10. }
    To copy to clipboard, switch view to plain text mode 
    ------------------------------------------
    item count 829
    cmb item count 829

    again the actual UI displays A-P and then stops.
    Last edited by jpn; 11th April 2008 at 08:11. Reason: missing [code] tags

Similar Threads

  1. Occurance of Duplicate items in QComboBox
    By merry in forum Qt Programming
    Replies: 8
    Last Post: 12th September 2007, 15:05
  2. Selective highlighting of Items
    By Kapil in forum Qt Programming
    Replies: 3
    Last Post: 26th May 2006, 12:20
  3. Automatically add items to a QComboBox (Qt4)
    By darkadept in forum Qt Programming
    Replies: 2
    Last Post: 19th May 2006, 15:32
  4. QcomboBox items
    By therealjag in forum Newbie
    Replies: 5
    Last Post: 27th March 2006, 08:21
  5. [QT3] QComboBox: Disable adding items on Enter-keypress
    By BrainB0ne in forum Qt Programming
    Replies: 7
    Last Post: 14th January 2006, 19:43

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
  •  
Qt is a trademark of The Qt Company.