Hi,

I set QCompleter to QLineEdit object… it works fine but I can’t get the current index from QCompleter by currentIndex() because it always return 0 for row index.

PS
I call currentIndex() from QLineEdit editingFinished() slot.


    void  MainWindow::on_lineEdit_find_editingFinished()
    {
        if  (p_db.isOpen()) {
            /*! \bug Set current row from the completer
             */
            ui->tableView_table->setCurrentIndex(completer->currentIndex());
            qDebug() << completer->currentIndex().row();
        }
    }


--
Best Regards,
Muhammad Bashir Al-Noimi

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to