Results 1 to 4 of 4

Thread: Functionality of QTableView

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Functionality of QTableView

    Quote Originally Posted by doberkofler View Post
    I'm currently evaluating the functionality of the QTableView widget and somehow miss the following functionality:
    1) Multiple fixed columns (often used when showing a structured primary key for each row)
    If you mean multiple line headers, this has been implemented. Look at qt-apps.

    If you mean frozen rows or frozen columns, you have to implement it yourself by placing another table between the header of the main table and its contents. QAbstractScrollArea::setViewportMargins() will help you do that.

    2) Fixed (last) row (often used when showing totals, counts, etc. in the last row)
    Same as above.
    3) Rearranging columns using drag and drop
    QHeaderView::setMovable()
    4) Automatically size row/column width for individual or multiple columns
    QHeaderView::setResizeMode()
    5) Column and row headers with mutiline text
    You need to reimplement QHeaderView::paintSection() (and possibly QHeaderView::sectionSizeFromContents()) for that.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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

    doberkofler (22nd March 2010)

Similar Threads

  1. Replies: 26
    Last Post: 7th January 2016, 20:26
  2. QTableView empty space or too little space.
    By davemar in forum Qt Programming
    Replies: 2
    Last Post: 16th October 2009, 16:00
  3. One Model, Two Views (QTreeView and QTableView)
    By dgarrett97 in forum Newbie
    Replies: 2
    Last Post: 14th September 2009, 18:10
  4. Replies: 2
    Last Post: 7th June 2009, 10:47
  5. Multi-line messages in QTableView
    By Conel in forum Qt Programming
    Replies: 6
    Last Post: 13th April 2006, 13:49

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
  •  
Qt is a trademark of The Qt Company.