Results 1 to 2 of 2

Thread: different column widgets in trees or tables

  1. #1
    Join Date
    Oct 2010
    Posts
    21
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default different column widgets in trees or tables

    Hello,

    I want to implement a table or tree widget, which has cells having different kinds of widgets, I mean, for example, one column has combobox, one column has line edit, another one has spinbox in its cells. Not all the cells in the table will be line edit.

    How can I implement it? I know about view->setModel(model), however this makes all of the cells of the table having another kind of widgets, like combobox or spinbox.

    Your help is very welcome.

  2. #2
    Join Date
    Oct 2010
    Posts
    21
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Windows

    Smile Re: different column widgets in trees or tables

    I have found it out

    If anyone tries, the usage of setItemWidget() function will solve this issue.

Similar Threads

  1. list tables column name (database)
    By baray98 in forum Qt Programming
    Replies: 1
    Last Post: 26th September 2012, 11:18
  2. Replies: 4
    Last Post: 13th July 2010, 05:17
  3. Replies: 1
    Last Post: 16th May 2010, 19:25
  4. Two Trees in one View
    By kemp in forum Qt Programming
    Replies: 6
    Last Post: 27th January 2009, 15:00

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.