How add Qpushbutton in QLineEdit with PyQt6 ?
Solved
Qt 6
-
Hi,
Sorry for my English, I don't have a good level.
I have a question :
I am new to Python and I use PyQt6 to develop my first application, I would like to know if it is possible to put a QPushButton in a QLineEdit?I would like to make a clickable button to display a new window.
Thank you all in advance for your help.
-
@Jbone73 You can use a QPushButton or QToolButton with an icon on it.
To arrange line edit and button use layouts: https://doc.qt.io/qt-5/layout.html