Results 1 to 2 of 2

Thread: QTableView with pages

  1. #1
    Join Date
    Oct 2010
    Posts
    6
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded

    Default QTableView with pages

    Hello,

    I am working on a Qt 4.6 touchscreen application using a model/view architecture and currently I use QTableView to visualize my data. However I need to have a view that doesn't use scrollbars (they are not that nice for a touchscreen) but rather breaks the data into pages and offers the possibility to flip through them. I also need to display the usual "page 1/42" string.

    What's your recomendation on this? Is there a widget that I can use? Or do I need to subclass QTableView or perhaps use a ProxyModel?

    Thanks in advance,
    Sysmaniac

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: QTableView with pages

    Create a table view and two buttons (at the top or bottom). One button for going back, one for going forward.

    In the table view, display only items on the screen. Get the table view size and calculate which items can be shown.
    Then, using the back and forward buttons, update the view.

    Well, that's the idea I would try (simply said though)

  3. The following user says thank you to tbscope for this useful post:

    sysmaniac (6th November 2010)

Similar Threads

  1. Qt assistant missing help pages
    By croscato in forum Qt Tools
    Replies: 1
    Last Post: 26th August 2009, 08:00
  2. Cannot show some ajax pages
    By zac in forum Newbie
    Replies: 15
    Last Post: 3rd August 2008, 06:16
  3. QWebView not loading pages
    By magland in forum Qt Programming
    Replies: 0
    Last Post: 24th May 2008, 14:41
  4. Creating pages
    By hgedek in forum Qt Programming
    Replies: 1
    Last Post: 19th July 2007, 15:11
  5. switching between pages
    By Kapil in forum Newbie
    Replies: 9
    Last Post: 6th March 2006, 10:57

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.