Skip to content

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…

How to extract specific line in text file

I am text mining a large document. I want to extract a specific line. I want to extract the description immediately under ITEM DESCRIPTION. I have tried many unsuccessful attempts. My latest attempt was: But it did not find the text. Is there a way to find ITEM DESCRIPTION and get the line after it or somethi…

Python sum of number in array, ignoring sections of specific numbers

I am very new to Python and have been going through multiple tutorials to get better. I have straggled with one difficult problem and found a solution. But it feels, works very newbie like. I think that I have tailored it to answer the specific question. So the question is: SUMMER OF ’69: Return the sum…