Results 1 to 7 of 7

Thread: How to set a column readonly in qtablewidgetitem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Sep 2007
    Posts
    19
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    2
    Thanked 3 Times in 3 Posts

    Default Re: How to set a column readonly in qtablewidgetitem

    you don't have to pass all of the flags. just try to disable Qt::ItemIsEditable flag:
    __colItem->setFlags(__colItem->flags() &~ Qt::ItemIsEditable);

  2. The following user says thank you to nile.one for this useful post:

    ashukla (23rd October 2007)

Similar Threads

  1. Replies: 0
    Last Post: 10th November 2006, 13:46
  2. Interesting little Segfault w/r to signal/slot connection
    By Hydragyrum in forum Qt Programming
    Replies: 24
    Last Post: 12th September 2006, 19:22
  3. hidden QListView column suddenly visible
    By edb in forum Qt Programming
    Replies: 10
    Last Post: 27th January 2006, 08:00

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.