I have two images, one inside another. first I used two QFrame s and set background image via stylesheets.
but this was not a good idea as QFrame has no pixmap() member.
I changed QFrame to QLabel n set the background image of the inner image via stylesheets. (only the inner image shall rotate).
Now, I used the following code to try rotating QLabel background image, though I get segmentation fault, when assignig QLabel pixmap to the Qpixmap variable.
Qt Code:
QMatrix rm; rm.rotate(90); pixmap = pixmap.transformed(rm); ui->label_11->setPixmap(pixmap);To copy to clipboard, switch view to plain text mode




Reply With Quote
Bookmarks