Results 1 to 1 of 1

Thread: [Q] sorting&filtering on sqlite with qte-4.7.2

  1. #1
    Join Date
    May 2013
    Posts
    2
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default [Q] sorting&filtering on sqlite with qte-4.7.2

    i'v tested sorting&filtering on sqlite with qte-4.7.2.
    but Dates are not filtered between minimum(1970.1.1) and maximum(2099.12.31). where is wrong point?
    ..
    createConnection_3();
    ..
    model = new QSqlRelationalTableModel(this);
    model->setTable("albums");
    model->select();

    proxyModel = new MySortFilterProxyModel(this);
    proxyModel->setDynamicSortFilter(true);
    proxyModel->setSourceModel(model);
    ui->tableView->setShowGrid(true);
    ui->tableView->verticalHeader()->hide();
    ui->tableView->setModel(proxyModel);
    ...
    void userset_Dialog_32::dateFilterChanged()
    {
    proxyModel->setFilterMinimumDate(ui->fromDateEdit->date());
    proxyModel->setFilterMaximumDate(ui->toDateEdit->date());
    }

    i attached files.
    thanks!
    Attached Files Attached Files

Similar Threads

  1. Sorting and filtering sql data
    By kode in forum Newbie
    Replies: 2
    Last Post: 12th June 2013, 04:11
  2. Replies: 6
    Last Post: 19th June 2012, 15:07
  3. Key filtering
    By phillip_Qt in forum Qt Programming
    Replies: 2
    Last Post: 24th June 2010, 09:10
  4. Filtering QSqlQueryModel
    By mourad in forum Qt Programming
    Replies: 4
    Last Post: 2nd August 2009, 09:32
  5. Filtering a TreeWidget
    By soul_rebel in forum Qt Programming
    Replies: 6
    Last Post: 26th January 2008, 20:08

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.