QComboBox 点击时才填充下拉列表 使用哪个信号啊解决方法
QComboBox 点击时才填充下拉列表 使用哪个信号啊?
QComboBox 点击时才填充下拉列表 使用哪个信号啊?
activated ? highlighted ? currentIndexChanged ?
------解决方案--------------------
继承 QComboBox 然后重写 void QComboBox::showPopup () [virtual]
------解决方案--------------------
这个函数专门用来reimplement 感谢!
QComboBox 点击时才填充下拉列表 使用哪个信号啊?
activated ? highlighted ? currentIndexChanged ?
------解决方案--------------------
继承 QComboBox 然后重写 void QComboBox::showPopup () [virtual]
------解决方案--------------------
这个函数专门用来reimplement 感谢!
void QComboBox::showPopup() [virtual]
Displays the list of items in the combobox. If the list is empty then the no items will be shown.
If you reimplement this function to show a custom pop-up, make sure you call hidePopup() to reset the internal state.
See also hidePopup().