I have a QToolbar
with toolButtonStyle
set to Qt::ToolButtonTextUnderIcon
in which I add a QLineEdit
through addWidget()
. I'd like to have descriptive text under that widget like I do with other buttons, but I don't know how to do it or if it's even possible. I tried:
lineEdit = QLineEdit()
action = self.toolBar.addWidget(lineEdit)
action.setText("Some Text")
But it doesn't work. Is it possible at all? If not, are there special techniques I don't know about to put text under that widget in a way that it's aligned with the other labels regardless of the style?