Unsolved is it possible to create a floating menu in Pysid2?
-
hello, I'm developing a program that needs a hidden menu that appears when you press a button.
The only solution I found available was the Toggles menus, which to be implemented just change the width of the frame. like this:
however this solution resizes the other screen widgets.
I need that the menu appears floating on the screen without interfering with the size of the other items. Like this:is it possible to create this in pyqt5 / pyside2? Thanks
-
@franzinBr Simply use https://doc.qt.io/qt-5/qmenu.html
-
@jsulm Thanks for the reply, but I believe that Qmenu does not fit what I need, since it is not possible to add LineEdit, QComboBox and other widgets to QMenu :/
-
@franzinBr See in the documentation:
"Widgets can be inserted into menus with the QWidgetAction class. Instances of this class are used to hold widgets, and are inserted into menus with the addAction() overload that takes a QAction. If the QWidgetAction fires the triggered() signal, the menu will close."