Call specific function a few seconds after C++/QML application start - c++

I am currently working on a C++ application with QML files.
I would like to have start screen on my application for a few seconds, and then get my main page. But I can't find any information on a proper way to do so in QML, using a specific event or such :(
My question is: what would be the proper way to do so in QML? If there is non, how could I nicely get this working in C++.
Any help would be greatly appreciated

You can use Timer in QML and load the main screen when it is triggered.

Related

Bring QProcess window to front (running Qt Assistant)

My Qt application starts a QProcess that runs Qt Assistant.
I am using Linux (Ubuntu/Neon/KDE) but I want the Qt application to run on Windows and other Linux distributions as well.
Now I need a function that allows to bring the Assistant main window to front at the desktop.
I could not find a solution doing this using the QProcess object. Also I could not find a way to do this via Qt Assistant remote control.
How can I do this in a portable way?
If all you need is showing qhc help files along with your application, you can have a look at the Qt Help module, which is used by Assistant itself.
Instead of showing the help in an external application like the Qt
Assistant, it is also possible to embed the online help in the
application. The contents can then be retrieved via the QHelpEngine
class and can be displayed in nearly any form. Showing the help in a
QTextBrowser is probably the most common way, but embedding it in
What's This help is also perfectly possible.
More here

imshow doesnt update on qt gui

So I have a program where I'm doing some processing with the OpenCV library and then show the results in a Qt made gui (on a widget). The thing is if i wanted to 'debug' the opencv implementation inside the gui, ie do a imshow of some frames/mask, it creates the window but doesn't refresh it except sporadically.
Trying to add a waitKey(1) to force a refresh just freezes the gui so its another dead end.
Any idea on how to fix this? If its needed I'll try to do a MWE but with the state of my program is a bit difficult to extract the functionality.
Thanks in advance.
Well seems that doing a
QApplication::ProcessEvents()
forces the image to update, albeit really slow, but for debugging purposes it will suffice.

Windows RT Component, Getting the app's core window

I just have a simple question, with a Windows Runtime Component (as in a library) that I am making how do I get the window object for the app? CoreWindow::GetForCurrentThread() throws an exception as it seems that the library runs in a different thread then the app. Any one know how to get the app window?
EDIT: GetForCurrentThread is not the problem, it seems that that it only works on the UI thread not a background thread, I would like a way to get at it from a background thread. Is it possible?
I think Window.Current is what you are looking for.

Subprocess as QT widget

I'm developing a simple IDE that has a embed, non-QT OpenGL renderer inside it. To prevent segfault's on the renderer to crash my application I'm willing to create it as a subprocess and somehow attach it as an widget on my QT main window. Is that possible?
Yes, you need to use QX11EmbedContainer in the main process, and then in another process to show your opengl widget.
QWinHost and related classes, now found in the QtSolutions archive, may be of help to you. You will find QWinHost in the qtwinmigrate plugin.
Don't be put off by the mention of "MFC support" - you can compile it without the AFXDLL dependencies as specified in the comments in qtwinmigrate.pri.

Unobtrusive Windows Notifications

I'm looking for a simple solution to create an unobtrusive notification program for windows using c++/QT/WinAPI/SDL or any other quick library. I'm wondering what the fastest method (as far as development goes) to create a simple program that pops a quick window up with access to a larger gui interface if clicked.
Is there a quick and easy way to set something up like this?
You may want to have a look at Growl for Windows.