Discussion Board

Results 1 to 3 of 3

Thread: Qt for Symbian

  1. #1
    Registered User
    Join Date
    Dec 2009

    Smile Qt for Symbian


    I have a QSqltableModel model->settable("student_table");.
    Can any body tell me how write a simple query, say (select* from student_table where student_id = 4) for
    QSqltableModel model. And when the query is executed the model should display the details of student_id = 4.
    I tried using setQuery Method, but its giving an saying setQery is protected.

    thank you

  2. #2
    Super Contributor
    Join Date
    Oct 2009

    Re: Qt for Symbian

    Documentation says you should use QSqlTableModel::setFilter().

  3. #3
    Registered User
    Join Date
    Dec 2009

    Smile Re: Qt for Symbian


    Does this works?

    model->setFilter("student_id = 4");

Similar Threads

  1. Qt for Symbian development resources
    By liuxg in forum [Archived] Qt General ( Qt技术)
    Replies: 55
    Last Post: 2011-01-26, 04:06
  2. How to use Qt Creator for creating maemo applications
    By marcelobarrosalmeida in forum Nokia N9
    Replies: 9
    Last Post: 2010-01-20, 01:10
  3. kinetic scrolling
    By stalep in forum Nokia N9
    Replies: 10
    Last Post: 2009-12-08, 12:41
  4. Senior QT Client Developer (Dublin, Ireland)
    By marynyc in forum News and Announcements
    Replies: 0
    Last Post: 2009-06-02, 18:24

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts