Interesting...
This is what I am doing.
I have a class that contains a pointer to my MainWindow and my Splash Screen Widget.
There I create a "singleton" instance of it that my class that can be used in my MainWindow's class. So inside a method of my MainWindow I am calling something like this:
void CINMainWindow::Search()
{
INMyApp()->INWaitSplash()->Start();
CINTimer::Sleep(1000); // Something meaningful would be done here
INMyApp()->INWaitSplash()->Stop();
}
void CINMainWindow::Search()
{
INMyApp()->INWaitSplash()->Start();
CINTimer::Sleep(1000); // Something meaningful would be done here
INMyApp()->INWaitSplash()->Stop();
}
To copy to clipboard, switch view to plain text mode
So I am calling Start() and Stop() to my splash screen class from any where I want.
Bookmarks