Results 1 to 2 of 2

Thread: About QSqlQueryModel

  1. #1

    Default About QSqlQueryModel

    How do I order a QSqlQueryModel projected on a QTableView when I click on the tabs of the table?

    For example, suppose there is a table that has a student name and age.

    I do, using a QSqlQueryModel that all students are shown on the screen (QTableView), however when you click the tab name that is sorted by name, when I click on the tab that age is sorted by age.

    More or less like this picture:
    http://img685.imageshack.us/img685/7453/24874410.jpg

    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: About QSqlQueryModel

    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.


Similar Threads

  1. how to set QComboBox on qsqlquerymodel header
    By sivamuthaiah in forum Qt Programming
    Replies: 0
    Last Post: 21st July 2009, 06:35
  2. how can I refresh QSqlQueryModel?
    By hashb in forum Qt Programming
    Replies: 3
    Last Post: 20th June 2009, 03:39
  3. QSqlQueryModel fetchMore
    By skuda in forum Qt Programming
    Replies: 0
    Last Post: 17th July 2008, 19:42
  4. QSqlQueryModel speed problem
    By tbscope in forum Qt Programming
    Replies: 2
    Last Post: 23rd March 2008, 11:31
  5. QSqlQueryModel + set Write
    By raphaelf in forum Qt Programming
    Replies: 7
    Last Post: 5th June 2006, 08:55

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.