QT4, paginated showing elements

Posted by matiit on Stack Overflow See other posts from Stack Overflow or by matiit
Published on 2010-06-05T13:05:20Z Indexed on 2010/06/05 13:12 UTC
Read the original article Hit count: 207

Filed under:
|
|

I am going to write an application that uses QT4 (with C++ or python it isnt important in that moment). One of functionality is "Showing all items in database".

One item has a Title, author, description and photo (constant size)

And there could be very many items. Let's say 400. There won't be enough space to show'em all at once time. One row will have 200px, so i need at most 4 for once time.

How to paginate them? I have no idea. I can use limit and offset in SQL queries, but how to tell window: "that's 5th page"?

Any solutions?

© Stack Overflow or respective owner

Related posts about qt

Related posts about qt4