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 av开发者_C百科atar):
You can use a QWidgetAction to contain your QLineEdit. It inherits QAction.
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.
精彩评论