Results 1 to 3 of 3

Thread: QTableWidget Questions

  1. #1
    Join Date
    Sep 2009
    Posts
    64

    Default QTableWidget Questions

    Hey everyone!

    I'm wondering if it is possible to insert a form with some buttons on it into the table itself.

    right now, i am trying to call setItem on the table itself and i am casting my form as a QTableWidgetItem* and when i try this... my program crashes.

    anyone have any suggestions?

  2. #2
    Join Date
    Sep 2009
    Posts
    64

    Default Re: QTableWidget Questions

    If there is another Widget that i can use to insert a form, or insert some buttons, into the table itself that would work fine.

    basically, i have a table with x number of fields, and I would like each row to have in the last column a button to turn on or turn off the option.

    I have written a work around that basically just shows and raises a form that is NOT IN MY TABLE and i just place it so that it looks like it is. the only problem with that is if i need to scroll down to view more rows, this position is thrown off.

    SO... what can fix my problems is:
    1. if i can figure out how to insert my "on/off" form into the table as an item

    or

    2. Figure out a way to determine if I am scrolling the tableWidget and get the new position of the table, or even how much in the y direction the user scrolled.

    please, any suggestions would be greatly appreciated!

  3. #3
    Join Date
    Sep 2009
    Posts
    64

    Default Re: QTableWidget Questions

    never mind... got things working... setCellWidget was the answer to my question

Similar Threads

  1. 2 Questions
    By kingfinn in forum Qt Programming
    Replies: 4
    Last Post: 12th March 2010, 17:00
  2. Some questions for Qt?
    By tszzp in forum Qt Programming
    Replies: 3
    Last Post: 14th December 2009, 09:46
  3. Sql questions
    By Nb2Qt in forum Qt Programming
    Replies: 4
    Last Post: 15th February 2007, 22:53
  4. KDE + Qt --- Questions
    By nupul in forum KDE Forum
    Replies: 2
    Last Post: 23rd April 2006, 18:35

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.