QByteArray to Gif
-
@Melia Create an https://doc.qt.io/qt-5/qbuffer.html instance with your QByteArray and use it with https://doc.qt.io/qt-5/qmovie.html#QMovie-1
-
@Melia said in QByteArray to Gif:
I tried this but the program crashes
Because
QByteArray bagoes out of scope. Use QBuffer::setData() for example. -
@Melia said in QByteArray to Gif:
How can I do with QMovie border radius
What do you mean? What border radius?
-
Hi,
One way to do it would be to subclass QLabel and reimplement the paintEvent method, there you start by letting the original do its work and then apply an overlay on it.
-
As I wrote, subclass QLabel, re-implement paintEvent, call the base classe implementation and then do your own painting.

