Skip to content

Tag: pyside2

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 t…

How to quit Qt application before main window is displayed

On launch, my Qt application displays a dialog box with some options, before displaying the main window. The dialog box has a ‘Start’ and ‘Cancel’ button. The same dialog box is used at a later time, after the main window is displayed, when the user clicks on a ‘New Game’ b…

How to rotate an QImage

I want to rotate my QImage by the amount of x. I don’t want to use QPixMap or the PaintEvent if possible. I have already searched for possible solutions but they didn’t work. Right now i am trying to solve it with the QTransform method: I don’t get any error message the image is just not rot…