Results 1 to 4 of 4

Thread: checkboxes in a tableview,

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: checkboxes in a tableview,

    Hmm... definitely not the right way to do it. Take a look at Qt::CheckStateRole and Qt::ItemIsUserCheckable and forget about index widgets.

  2. #2

    Default Re: checkboxes in a tableview,

    sorry but can you be more practical? i'm very new to qt programming (1 month) and i have greats difficulties to find useful examples for really beginners like me.

    Qt::CheckStateRole and Qt::ItemIsUserCheckable are to set the properties of the checkboxes i suppose, but now they works like i want with my code, there are some reason because i shouldn't use it? is it deprecated ?

    if I have to forget about index widgets how can i do what i need? i tried to use QItemDelegate with no success, and also it's too much complicated for my little job. (create a custom viewtable with checkbox on first coloumn and textview on the second coloumn)

    have you a simple example where i can look how to make something that can help me capturing only the text i need to take?

    thanks for helping me.

  3. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: checkboxes in a tableview,

    J-P Nurmi

Similar Threads

  1. Checkboxes in QAbstractITemModel
    By Valheru in forum Qt Programming
    Replies: 5
    Last Post: 28th November 2007, 20:23
  2. Drag an item from QTreeWidget and drop in TableView
    By steg90 in forum Qt Programming
    Replies: 8
    Last Post: 18th May 2007, 11:42
  3. tableview and layouts
    By zorro68 in forum Qt Programming
    Replies: 1
    Last Post: 10th February 2007, 17:21
  4. TreeView, TableView
    By rbrand in forum Qt Programming
    Replies: 1
    Last Post: 4th July 2006, 08:54
  5. Modified tableview
    By dkite in forum Qt Programming
    Replies: 2
    Last Post: 14th March 2006, 01:58

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.