Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
QComboBoxの単一の列に使用するデリゲートを作成しました(そのQTableView列の各セルは個別ですcombobox) 。データベースによって取得されたこのデータをmy に入力するにはどうすればよいですか。combobox;combobox
QComboBox
QTableView
combobox
;
明確にするために: 問題の列は特定の ID (4 桁の文字列) を取得します。オブジェクトに複数の ID ( で区切られている;) がcomboboxある場合があります。と。
おそらく、次のようなものが機能します。
QString data = "Id01;Id02;Id03;Id04;Id05"; QStringList list = data.split(";"); QComboBox *comboBox = new QComboBox; comboBox->insertItems(0, list);