Вставьте QlineEdit в Qmenu Python
menu = QMenu(self)
menu.addAction(QWidgetAction(QLineEdit(menu)))
Tomer Mantzuri
menu = QMenu(self)
menu.addAction(QWidgetAction(QLineEdit(menu)))