Results 1 to 3 of 3

Thread: how to create frozen footer row in QTableView?

  1. #1
    Join Date
    Dec 2013
    Location
    Chicago
    Posts
    7
    Qt products
    Qt5
    Platforms
    Windows

    Default how to create frozen footer row in QTableView?

    The comment in the source for QAbstractScrollArea::setViewportMargins() says this:

    "Sets the margins around the scrolling area to \a left, \a top, \a
    right and \a bottom. This is useful for applications such as
    spreadsheets with "locked" rows and columns. The marginal space is
    is left blank; put widgets in the unused area.

    Note that this function is frequently called by QTreeView and
    QTableView, so margins must be implemented by QAbstractScrollArea
    subclasses. Also, if the subclasses are to be used in item views,
    they should not call this function.

    By default all margins are zero."

    I was able to create the space for the frozen row by calling setViewportMargins, but I can't figure out how to place a control in that "unused area". I would like to just put a QTableWidget there and hide the headers and just make one row high. Does anyone know how to do this?

  2. #2
    Join Date
    Dec 2013
    Location
    Chicago
    Posts
    7
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: how to create frozen footer row in QTableView?

    Nevermind, I was able to place the widget in the space by calling setGeometry

  3. #3
    Join Date
    May 2013
    Posts
    6
    Thanks
    2

    Default Re: how to create frozen footer row in QTableView?

    Hi,

    can you tell me (example) how you resolved this?

Similar Threads

  1. OpenGL surfaces frozen (QGLWidget)
    By ddonate in forum Qt Programming
    Replies: 3
    Last Post: 4th April 2013, 20:09
  2. Replies: 2
    Last Post: 8th March 2013, 12:30
  3. QTableWidget frozen Column
    By Qiieha in forum Qt Programming
    Replies: 1
    Last Post: 16th November 2011, 15:55
  4. QTableView with summary footer
    By skuda in forum Qt Programming
    Replies: 8
    Last Post: 12th September 2011, 09:19
  5. Header and Footer
    By vermarajeev in forum Qt Programming
    Replies: 11
    Last Post: 8th December 2006, 13:10

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.