Results 1 to 4 of 4

Thread: inserting combo box in table ..

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Mar 2009
    Location
    Italy
    Posts
    7
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: inserting combo box in table ..

    Quote Originally Posted by wagmare View Post
    hi friends,
    is there a way to insert a QComboBox in QTable column ... please help .
    Hi,

    what is the use of QComboBox inside the QTable column? Is it for editing the content of model? If yes, a good approach is to implement a custom Delegate for editing the column. This delegate will create the QComboBox as editor for each column cell, will fill the QComboBox with the relevant items and manages the set of current value inside the QComboBox, retrieve the user selection and set it as current value inside the table.

    Bye.

    Alessandro

  2. The following user says thank you to Zuzzu for this useful post:

    wagmare (2nd June 2009)

Similar Threads

  1. Postgresql QSqlRelationalTableModel empty table
    By RolandHughes in forum Qt Programming
    Replies: 0
    Last Post: 12th November 2008, 17:18
  2. Replies: 3
    Last Post: 5th October 2008, 23:41
  3. Inserting Table
    By dreamer in forum Qt Programming
    Replies: 5
    Last Post: 16th May 2008, 10:10
  4. Inserting Integer Values to table.
    By kenny_isles in forum Newbie
    Replies: 2
    Last Post: 22nd February 2007, 07:17
  5. displaying any table on a qdatatable
    By Philip_Anselmo in forum Newbie
    Replies: 4
    Last Post: 9th May 2006, 22:12

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.