Results 1 to 7 of 7

Thread: qtableview:one table hide Column,and other tables not

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2013
    Posts
    4
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: qtableview:one table hide Column,and other tables not

    Thanks for your help. I'm not very understand the meaning of the " resets the visibility of columns or rows".
    Does it mean that I should call showColumn somewhere?
    And if you hadn't reminded me of the code matter, I would certainly have passed it. Thanks a lot.
    Last edited by chenmo20074639; 8th May 2014 at 10:07.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: qtableview:one table hide Column,and other tables not

    I mean that when you call setModel() the view makes all columns visible. You need to hide columns after you set the model.

  3. #3
    Join Date
    Jun 2013
    Posts
    4
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: qtableview:one table hide Column,and other tables not

    Thank you very much. I think I could solve this problem with your method now.

Similar Threads

  1. Replies: 7
    Last Post: 14th August 2015, 20:49
  2. list tables column name (database)
    By baray98 in forum Qt Programming
    Replies: 1
    Last Post: 26th September 2012, 11:18
  3. different column widgets in trees or tables
    By fulbay in forum Qt Programming
    Replies: 1
    Last Post: 6th October 2010, 15:28
  4. Joining tables into QTableView
    By SykeS in forum Qt Programming
    Replies: 10
    Last Post: 8th June 2010, 10:39
  5. Way to load all of data from 2 tables into one QTableView?
    By Kevin Hoang in forum Qt Programming
    Replies: 8
    Last Post: 3rd April 2010, 09:42

Tags for this Thread

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.