|
我按照qt自带的教程一步一步做
当作到在toolbar中加上一个widgets,是combobox时,
发现combox不能正常显示,即在toolbar中看不到它。
请问这是问什么?
Although you can put any widget into a toolbar we recommend that widgets which can be associated with an action should not be added to the toolbar directly. For these widgets, i.e. menu items, toolbar buttons and lists of items, you should create an action (drop down action for a list of items), associate the action with the widget, and add the action to the toolbar. Widgets that can sensibly be inserted directly into a toolbar are ComboBoxes, SpinBoxes and Line Edits.
这里面不是说了combobox是可以直接加的吗?
谢谢了! |
|