QLabel image wrap around
Unsolved
General and Desktop
-
Hello,
I am setting a Pixmap to a QLabel and drawing on this label. I would like the image on my QLabel to wrap around. Meaning that when I pan my image, and I get to the end on the horizontal size, I would like the image to keep going.
Could anyone help me?
Thank you
-
You have to do this by your own by reimplementing the paintEvent() and drawing the pixmap the way you want.
-
Maybe this should already work, but completely untested
void foo:paintEvent(QPaintEvent *ev) { QPainter p(this); QBrush b(m_myPixmap); p.fillRect(rect(), b); }