change querymodel
Unsolved
General and Desktop
-
how to disable the querymodel?
i execute query in model and apply ui->combobox->setmodel(query);
now i want to disable setmodel(query), then i have add new model
ui->combobox->setmodel(query) at during the execution time. -
@Rameshguru From documentation (http://doc.qt.io/qt-5/qcombobox.html#setModel):
"If you want to clear the contents of a model, call clear()."
So, just call clear() and then set new model. -
i call clear but not work
-
-
can you brief question clearly that what you want to achieve..