Results 1 to 1 of 1

Thread: How to add blank space to a QTableView?

  1. #1
    Join Date
    Jul 2008
    Posts
    31
    Thanks
    1
    Thanked 5 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default How to add blank space to a QTableView?

    Dear all,

    I have a QTableView populated with items. However, I require to be able to access empty space on this view (with the mouse cursor) to implement a particular custom context menu. The scrollbar fits the contents of the view perfectly and therefore leaves no empty space at the bottom.

    How can I force the table view area to be slightly larger than that of the area taken up by the items?

    So, I have:

    have.png

    But I want the additional area shown by the blue rectangle:

    want.png

    Kind Regards,

    Paladin12
    Last edited by Paladin12; 3rd August 2011 at 11:59. Reason: Adding images

Similar Threads

  1. Replies: 5
    Last Post: 8th July 2011, 08:06
  2. Replies: 6
    Last Post: 7th November 2010, 14:17
  3. Blank space at right side of plot
    By liversedge in forum Qwt
    Replies: 2
    Last Post: 14th August 2010, 13:02
  4. customize QTableView to add blank rows
    By rosenth in forum Qt Programming
    Replies: 2
    Last Post: 17th April 2010, 11:47
  5. QTableView empty space or too little space.
    By davemar in forum Qt Programming
    Replies: 2
    Last Post: 16th October 2009, 16: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.