Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Custom (Q?)menu including Buttons, ComboBoxes etc.
michelson last edited by michelson
I want to have some kind of pop up menu on button click. However it has some controls like QLineEdit, QSpinBox, QComboBox inside.
Bottom section is always visible, clicking bottom right QButton shows the menu. To me the whole bottom section looks kinda like QComboBox however the menu is more complicated.
What is the correct (or easiest?) way to implement such thing? I have never made such thing so idk if I should reimplement QMenu. It seemd from the docs that it is populated by QActions rather than other widgets.
VRonin last edited by VRonin
You can just create the upper part as a widget and
hide()it then connect the button
clicked()signal to this widget's
michelson last edited by
Yep thats what I've started doing half hour ago. I just thought there was some smarter way to create such menu :D