Здравствуйте, гость ( Вход | Регистрация )
Robin Bobin | Дата 26.6.2012, 0:34 |
Смотри void QComboBox::setView ( QAbstractItemView * itemView ), вот что он может: Цитата Sets the view to be used in the combobox popup to the given itemView. The combobox takes ownership of the view. Note: If you want to use the convenience views (like QListWidget, QTableWidget or QTreeWidget), make sure to call setModel() on the combobox with the convenience widgets model before calling this function. See also view(). Спасибо, буду разбираться. Сообщу о результате. |
|
ViGOur | Дата 25.6.2012, 22:17 |
Смотри void QComboBox::setView ( QAbstractItemView * itemView ), вот что он может: Цитата Sets the view to be used in the combobox popup to the given itemView. The combobox takes ownership of the view. Note: If you want to use the convenience views (like QListWidget, QTableWidget or QTreeWidget), make sure to call setModel() on the combobox with the convenience widgets model before calling this function. See also view(). |
|
Robin Bobin | Дата 24.6.2012, 17:05 |
Подскажите, как в Qt сделать такой комбобокс, как например в Thunderbird(Message > Create filter from message>perform these actions)? и чтобы можно было иконки выставлять для каждого элемента. Есть готовые примеры? Спасибо. |
|
Просмотр темы полностью (откроется в новом окне) | |
Текстовая версия | Сейчас: 29.4.2024, 17:06 |