Results 1 to 8 of 8

Thread: ComboBox with multiple columns

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #8
    Join Date
    Apr 2009
    Location
    Gdansk, Poland
    Posts
    11
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    7

    Default Re: ComboBox with multiple columns

    example:

    QTableView *tv = new QTableView(this);
    tv->setModel( model );
    tv->horizontalHeader()->setVisible(false);
    tv->verticalHeader()->setVisible(false);
    tv->resizeColumnsToContents();
    combo->setView(tv);
    Last edited by olosie; 11th July 2009 at 10:24.

Similar Threads

  1. Width QTableView for QCombobox with multiple columns
    By visor_ua in forum Qt Programming
    Replies: 7
    Last Post: 21st June 2011, 10:54
  2. Displaying Multiple Columns in QListView
    By millard in forum Qt Programming
    Replies: 8
    Last Post: 5th December 2007, 12:03
  3. how to corss compile for windows in Linux
    By safknw in forum Qt Programming
    Replies: 24
    Last Post: 13th May 2006, 05:23
  4. QCheckListItem with multiple columns?
    By ecphora in forum Qt Programming
    Replies: 7
    Last Post: 12th April 2006, 05:01

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