flib:
- Ability to pass raw data via IPC
qmlfrontend:
- Pass message received by callback through event loop to handle it in main thread
- Get preview image from engine on button click and render it in Image object
#include "previewimageprovider.h"
PreviewImageProvider::PreviewImageProvider()
: QQuickImageProvider(QQuickImageProvider::Pixmap)
{
}
QPixmap PreviewImageProvider::requestPixmap(const QString &id, QSize *size, const QSize &requestedSize)
{
Q_UNUSED(id);
Q_UNUSED(requestedSize);
if (size)
*size = m_px.size();
return m_px;
}
void PreviewImageProvider::setPixmap(const QPixmap & px)
{
m_px = px;
}