Results 1 to 2 of 2

Thread: Getting Cell Content of QTableWidget

  1. #1
    Join Date
    Dec 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Lightbulb Getting Cell Content of QTableWidget

    I have generated a table widget dynamically in my application having 5 columns and am filling up the table from my back-end database. All the columns created based on the alias take in the query are editable. I have hid the last two columns for my own purpose and have displayed only the first three columns. I need to implement three more things.

    1) I want to make my first column read only and setting flags doesn't gave me the desired result.
    2) I want to have check boxes in every row but only in the first column and also one check box in the header of the first column. I am unable to do it.
    3) I want to perform some operation using the cell's content and display something in result. But I am unable to gather the data of cell from my table. How to do so if I am intended to perform some mathematical operations on that.


    Hope I am clear here, with my query. Show me the correct path.
    Thanks

  2. #2
    Join Date
    Dec 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Getting Cell Content of QTableWidget

    Quote Originally Posted by Kclark View Post
    I have generated a table widget dynamically in my application having 5 columns and am filling up the table from my back-end database. All the columns created based on the alias take in the query are editable. I have hid the last two columns for my own purpose and have displayed only the first three columns. I need to implement three more things.

    1) I want to make my first column read only and setting flags doesn't gave me the desired result.
    2) I want to have check boxes in every row but only in the first column and also one check box in the header of the first column. I am unable to do it.
    3) I want to perform some operation using the cell's content and display something in result. But I am unable to gather the data of cell from my table. How to do so if I am intended to perform some mathematical operations on that.


    Hope I am clear here, with my query. Show me the correct path.
    Thanks

    Please reply to this, if someone is interested or give me any indication to wave off from here.

Similar Threads

  1. qtablewidget cell's x() , y()
    By BalaQT in forum Qt Programming
    Replies: 1
    Last Post: 7th December 2010, 13:23
  2. CSV file content to QTablewidget view
    By vishnu in forum Newbie
    Replies: 5
    Last Post: 22nd October 2010, 11:04
  3. Many cell widget in QTableWidget
    By Benarez in forum Qt Programming
    Replies: 3
    Last Post: 21st January 2010, 08:02
  4. Replies: 1
    Last Post: 7th December 2009, 19:56
  5. Replies: 1
    Last Post: 2nd December 2008, 19:33

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.