Results 1 to 2 of 2

Thread: Can not remove the checkBox from QtableView?

  1. #1
    Join Date
    Feb 2008
    Posts
    154
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Windows

    Default Can not remove the checkBox from QtableView?

    Hi,
    How can i remove the checkBox from a QTableView?

    I am using a QTableView but items always appear with CheckBox at the right!!!

  2. #2
    Join Date
    May 2010
    Posts
    61
    Thanks
    2
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Can not remove the checkBox from QtableView?

    Hi mismael85,

    You need to set the proper flags on the items. Use QTableWidgetItem::setFlags function.

    Hope this helps,
    wladek
    One second is long, everything longer than two seconds is definitely too long.

Similar Threads

  1. How to centering the checkbox in qtableview
    By nemesisqp in forum Qt Programming
    Replies: 1
    Last Post: 8th April 2010, 17:22
  2. CheckBox inside a QTableView
    By voilier92 in forum Qt Programming
    Replies: 2
    Last Post: 5th March 2010, 05:04
  3. QCombobox remove checkbox
    By ucomesdag in forum Qt Programming
    Replies: 6
    Last Post: 1st August 2007, 00:38
  4. QTableView with a checkbox
    By maxpower in forum Qt Programming
    Replies: 17
    Last Post: 18th February 2007, 09:45
  5. CheckBox and selection in QTableView
    By Mike Krus in forum Qt Programming
    Replies: 1
    Last Post: 21st September 2006, 20:31

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.