Results 1 to 9 of 9

Thread: QTableWidget - Adding Checkboxes into Cell/ Deleting Line Edit

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2009
    Location
    London
    Posts
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: QTableWidget - Adding Checkboxes into Cell/ Deleting Line Edit

    cheers for that -
    but being a complete newbie, let me just risk asking a dumb question: is this do-able within Qt Designer?

    (i 'm a graphic designer and mostly using Designer or occasionaly QtCreator)

    thanks,

  2. #2
    Join Date
    Apr 2009
    Location
    Valencia (Spain)
    Posts
    245
    Thanks
    38
    Thanked 19 Times in 19 Posts
    Qt products
    Qt4
    Platforms
    Symbian S60

    Default Re: QTableWidget - Adding Checkboxes into Cell/ Deleting Line Edit

    I don't know if there are any other ways, but you can subclass QTableWidgetItem and create your own Items; for instance, one with the checkbox and no text at all.

    But, in my opinion, if you can "cheat" a little bit (like setting and empty string) and solve your problems that way.. better :P So far I didn't need to subclass QTableWidgetItem.

Similar Threads

  1. QTcpSocket exception.
    By Fastman in forum Qt Programming
    Replies: 9
    Last Post: 29th January 2008, 13:51
  2. Adding a line edit in a toolbar
    By borges in forum Qt Tools
    Replies: 1
    Last Post: 16th August 2007, 15:33
  3. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 06:13
  4. QTableView paints too much
    By Jimmy2775 in forum Qt Programming
    Replies: 2
    Last Post: 26th July 2006, 18:42

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.