https://doc.qt.io/qt-5/qimage.html#QImage-4
here
there is a QImage constructor
you just have to give PixelBuffer::data()
as the buffer
& make sure that you don't destroy the pb until the image is destroyed
for format, use QImage::Format_RGBA8888
you can load a Pb using fs::readPNGImage
& you can also scale it