Skip to content
Advertisement

Tag: qt5

How to get the text of the clicked item of Listwidget in PyQt5?

I was looking for a method to get a text/ name of the clicked element on a listWidget. This was my approach looks like: but it always crashes and gives me this error: Could someone please tell me what Im doing wrong? Answer The signature of your slot lamp_clicked is wrong. Take a look at QListWidget::itemClicked and note that the

how to make a package(pypi) for pyqt5 app on windows?

I wrote an application with pyqt5 and packaged it using python setup.py sdist to make it available on PyPi the app runs well on Linux distributions but there is a problem with windows when i run it ,it does open a console then the actual app shows up is there any way to fix it ? setup.py Answer Instead of

QTextedit find() always returns False (pyside2)

I want to do some search and replace in a QTextEdit but QTextEdit.find() always returns False/finds nothing. Where is my mistake? Here is a (very) minimal reproducible example: Thx for that -.-: “This question already has an answer here: QTextEdit.find() doesn’t work in Python” That is not true. (Maybe read the questions and answers before stating something like that and

Advertisement