Hello all,
after the completer is set to combobox,
the combobox doesn't have the items. is it correct?
Qt Code:
QComboBox box; box.setEditable(true); //box.addItem("a1"); //box.addItem("a2"); //box.addItem("a3"); QStringList list; list << "a1" << "a2" << "a3"; com.setCaseSensitivity(Qt::CaseInsensitive); box.setCompleter(&com); // int num = box.count(); box.show();To copy to clipboard, switch view to plain text mode
here num is 0, and if you push the button of dropdown menu, there is no element shown.
only when you input something e.g "a", the meet results are shown.
does it mean for the combobox list, we need to call addItem to set it again?
Bookmarks