Results 1 to 11 of 11

Thread: Storing QList of QPair in QStandardItem then rendering it in QComboBox of QTableView.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Storing QList of QPair in QStandardItem then rendering it in QComboBox of QTableV

    I dont even see the need for table view...
    you can use layouts ... QLabels as item names, and QComboBox having list of textures.

    Combining combobox in tableview will not be easy,,, and as tbscope said, delegates will be needed.

  2. #2
    Join Date
    Jun 2010
    Posts
    36
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Storing QList of QPair in QStandardItem then rendering it in QComboBox of QTableV

    Quote Originally Posted by aamer4yu View Post
    I dont even see the need for table view...
    Well, I'm not only showing the items, other stuff is needed like adding/removing textures, changing the order of items, etc. I'm using the table to get the selected items and stuff.

    EDIT: My example showed two items... Real files have hundreds.

Similar Threads

  1. Replies: 8
    Last Post: 7th November 2012, 19:20
  2. Width QTableView for QCombobox with multiple columns
    By visor_ua in forum Qt Programming
    Replies: 7
    Last Post: 21st June 2011, 10:54
  3. QCombobox as QTableView delegate
    By martonmiklos in forum Qt Programming
    Replies: 7
    Last Post: 13th June 2010, 15:23
  4. Replies: 4
    Last Post: 12th October 2009, 19:36
  5. using QPair in QVector
    By damonlin in forum Qt Programming
    Replies: 5
    Last Post: 28th January 2009, 09:29

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.