QT and custom menu item (QLineEdit)

How can I use QLineEdit as a menu item in QMenu? Are there any solutions for this?

Just do something like this (look at the edit window under the avatar):

alt text

+5
source share
2 answers

You can use QWidgetAction to contain a QLineEdit. It inherits QAction.

+7
source

Take a look at the QComboBox . This allows you to edit items in a pop-up menu. But if you mean the menu in the main menu, I don’t think there is a way to do this. And this is not a very good user interface.

0
source

All Articles