First of all sorry for my very late reply, totally forgot about this forum.
I tried to use the QFileDialog from QtWidgets with my QtQuick application, but when closing the filepicker the app stays frozen .
Actually I have similar problems with all the CX async stuff, not calling the callback function.
@Ahti do you have your own public server? If so, then perhaps the most easy way would be to code a simple http API that your app (with somekind of authentication obviously) can do a simple http POST to, and that thing then sends the e-mail to you.
I have find a way to get a QImage of an QWindow:
Make a standard QWindow with is surface and add the following code:
// set the current context OpenGL
// check if an OpenGlContext is created
qFatal("Cannot create the requested OpenGL context!");
// init a new framebuffer
const QRect drawRect(0, 0, this->width(), this->height());
const QSize drawRectSize = drawRect.size();
_fbo = new QOpenGLFramebufferObject(drawRectSize, fboFormat);
_fboImage = new QImage(_fbo->toImage(false));
But, this is work only if the window is "visible", when it is set to Hidden the rendering of Qt3D was made (the rendering loop, because the GPU is used and the FPS is divided by 3), but the QOpenGLFramebufferObject was not filled :/
Do you have any idea of how force the filling of the fbo ?
@nitish_linked As @SGaist said use absolute path to your qmake. If you just call qmake the system looks in some predefined locations (like /usr/bin) and in directories PATH is showing to and finds qmake from your distribution.
Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.