Hi
How can I use QLineEdit as a menu item in QMenu? Is there any solutions to do this?
Just to do something like this (look at the edit box under the avatar):
Hi
How can I use QLineEdit as a menu item in QMenu? Is there any solutions to do this?
Just to do something like this (look at the edit box under the avatar):
Take a look at QComboBox. It allows editing of items in a pop-up menu. But if you mean the menu in the main menu bar, I don't think there's a way to do it. And it's not a good UI anyway.
You can use a QWidgetAction to contain your QLineEdit. It inherits QAction.