qcombobox
Font size QComboBox items?
Say I fill QComboBox with a number on each line. And lines are very cl开发者_JAVA技巧ose vertically. How can I control vertical the distance?If you just want to change the row height (instead of chang[详细]
2023-01-15 09:24 分类:问答Qt How to disable mouse scrolling of QComboBox?
I have some embedded QComboBox in a QTableView. To make them show by default I made those indexes \"persistent editor\". But now every 开发者_JS百科time I do a mouse scroll on top them they break my c[详细]
2023-01-07 05:40 分类:问答How do I set the QComboBox width to fit the largest item?
I have a QComboBox that I fill with QString using: comboBox->addItem(someString); When I start my GUI application the width of the QComboBox is always 70, even if the smallest item is much large[详细]
2023-01-05 19:14 分类:问答Qt, How do I change the text color of one item of a QComboBox? (C++)
I cannot figure out how to change the text color of one particular item of a QComboBox. I was able to change the Background color of an item:[详细]
2023-01-04 11:30 分类:问答'C++ object destroyed' in QComboBox descendant editor in delegate
I have modified combobox to hold colors, using QtColorCombo (http://qt.nokia.com/products/appdev/add-on-products/catalog/4/Widgets/qtcolorcombobox) as howto for the \'more...\' button implementation d[详细]
2022-12-23 13:55 分类:问答Qt - How to use rich text in a QComboBox?
I am trying to use 开发者_运维知识库rich text in a QComboBox but it does not support it. Perhaps I should write a subclass? But I am unsure on what I would need to override as I have never done anythi[详细]
2022-12-23 05:15 分类:问答QIcon inside combobox
I want to include a \"remove\" icon on entries in my QComboBox, but I am having trouble catching the mous开发者_JAVA百科e press event. I\'ve tried to catch it on the combobox, and I\'ve tried reimplem[详细]
2022-12-22 05:23 分类:问答QCompleter forces double enter
I have a QCompleter that is forcing my users to hit enter twice when the popup is visible but is not used to select an item. The model for the QComboBox associated to the completed is used as the mode[详细]
2022-12-19 11:34 分类:问答How can I get the selected VALUE out of a QCombobox?
In Qt, I can get the selected text of a QComboBox by using the combobox->currentText() method. How can I get the selected value?[详细]
2022-12-16 01:46 分类:问答Set a QComboBox or QSpinBox to a value not allowed
I am maintaining an application which tries to help the user get his parameters to work together, as there are many interdependencies.[详细]
2022-12-12 09:16 分类:问答
加载中,请稍侯......