Hello,
I'm trying show QTableView in QComboBox.
Example Department is table in my database.
Query =
and I've tried this my code.SELECT Dep.Code,Dep.Name FROM Dep
Qt Code:
depModel->setQuery("SELECT Dep.Code,Dep.Name FROM Dep"); . . . cboxTable->setModel(depModel); courseComboBox->setView(cboxTable);To copy to clipboard, switch view to plain text mode
but not work.Where is my problem ? I want see multiple columns.
Here is this problem stackoverflow link
Bookmarks