Results 1 to 9 of 9

Thread: Adding columns to qtableview

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #9
    Join Date
    Jun 2012
    Posts
    33
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Adding columns to qtableview

    I get what you say high Flyer. But after searching Google for a while I cannot seem to find how to get the spinbox from the cell.

    A couple of other posts here in Qt Centre have the same problems. One solution was to subclass the Spinbox and make it into a delegate while another talked about signals and slots.

    Is there an easy way to get the spinbox from the cell and get the value from that spinbox?

    Thanks,

    Pericles

    EDIT* I found another post http://www.qtcentre.org/threads/6366...Widget-signals which was very helpful. I just needed to make the cell contents numbers and the spinbox would be available with no other changes. I feel stupid but that's why I am in the Newbie section.
    Last edited by pcheng; 11th July 2012 at 09:04.

Similar Threads

  1. Distribute columns in QTableView
    By qlands in forum Qt Programming
    Replies: 1
    Last Post: 17th August 2011, 14:33
  2. Sorting columns of the QTableView
    By Qiieha in forum Qt Programming
    Replies: 8
    Last Post: 9th May 2011, 19:24
  3. Validator for QTableView columns
    By sasi in forum Qt Programming
    Replies: 0
    Last Post: 6th October 2009, 08:10
  4. Different delegates to different Columns of QTableView.
    By kaushal_gaurav in forum Qt Programming
    Replies: 4
    Last Post: 6th August 2008, 09:17
  5. set the width of the columns of QTableView
    By zhanglr in forum Qt Programming
    Replies: 6
    Last Post: 31st July 2008, 15:29

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.