Results 1 to 6 of 6

Thread: is it possible to split a particular collumn into subcollumn in table widget?

  1. #1
    Join Date
    Oct 2011
    Posts
    160
    Thanks
    31
    Qt products
    Qt4
    Platforms
    Windows

    Default is it possible to split a particular collumn into subcollumn in table widget?

    I have a table widget...
    Is it possible to create sub column inside a particular column when we clicked on that column header?

    Untitled.jpg
    Last edited by aurora; 20th February 2012 at 07:43.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: is it possible to split a particular collumn into subcollumn in table widget?

    What do you mean? I don't get you.

  3. #3
    Join Date
    Oct 2011
    Posts
    160
    Thanks
    31
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: is it possible to split a particular collumn into subcollumn in table widget?

    please see this image....
    Untitled.jpg

  4. #4
    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: is it possible to split a particular collumn into subcollumn in table widget?

    Why do you think that repeating the same image is going to make it clearer?

    As far as I can see there is no way in the out-of-the-box QHeaderView to have the section header span multiple columns of the QTableView.

  5. #5
    Join Date
    Oct 2011
    Posts
    160
    Thanks
    31
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: is it possible to split a particular collumn into subcollumn in table widget?

    Is it possible to insert multiple column inside a single column?

  6. #6
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: is it possible to split a particular collumn into subcollumn in table widget?

    Quote Originally Posted by ChrisW67 View Post
    Why do you think that repeating the same image is going to make it clearer?
    The image was added after my reply...

    There is a exapmle on qt-apps.org about spanning a header over multiple columns. You can get some inspiration from there. Basically it is simple adding a new column and spanning the header.

Similar Threads

  1. Replies: 7
    Last Post: 6th February 2017, 19:10
  2. Validator for the table widget item in table
    By mukunda in forum Qt Programming
    Replies: 4
    Last Post: 6th June 2011, 23:07
  3. Edit table for my own table-widget
    By MasterMatrix in forum Qt Programming
    Replies: 0
    Last Post: 1st December 2010, 07:05
  4. [Qt 4.1.0] Split a widget on demand
    By Townk in forum Qt Programming
    Replies: 3
    Last Post: 17th February 2006, 14:16
  5. advanced split widget
    By vitaly in forum Qt Programming
    Replies: 10
    Last Post: 24th January 2006, 20: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.