Results 1 to 10 of 10

Thread: TableView/Model Display Question

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Join Date
    Jan 2008
    Location
    Bengaluru
    Posts
    144
    Qt products
    Qt3 Qt4
    Platforms
    Windows
    Thanks
    8
    Thanked 7 Times in 7 Posts

    Default Re: TableView/Model Display Question

    Ok. Can't you use Disable / Enable property. I think, these properties should be there. The fields which are not editable, make it disabled and try setting the stylesheet. I haven't given a try, check out once.

    I have done something similar for QMenu, Find some snippets below regarding it. Hope it helps!

    Qt Code:
    1. .QMenu::item:!disabled:selected { }
    To copy to clipboard, switch view to plain text mode 

    Qt Code:
    1. .QMenu::item:disabled, .QMenu::item:disabled:selected { }
    To copy to clipboard, switch view to plain text mode 
    Last edited by nikhilqt; 20th April 2010 at 14:46.

Similar Threads

  1. QListView does not display its model
    By mtrpoland in forum Qt Programming
    Replies: 1
    Last Post: 22nd February 2008, 19:31
  2. Model display problem
    By gyre in forum Newbie
    Replies: 3
    Last Post: 31st December 2007, 13:46
  3. tableview model view problem
    By skuda in forum Qt Programming
    Replies: 5
    Last Post: 3rd December 2007, 14:02
  4. Replies: 1
    Last Post: 10th October 2007, 10:11
  5. Model-view: Display items in different ways
    By taboom in forum Qt Programming
    Replies: 3
    Last Post: 13th August 2007, 19:05

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.