Re: When I keep clicking on Splashscreen I get following error
... and running your program in your debugger to see where it is generating the unhandled exception.
The "nullptr" value passed on line 2 is begging to be misused inside the MainWindow constructor or methods.
The path on line 3 does not need two forward slashes.
You should, in general, copy and paste compilable code when asking for help. The second last line will not compile.
“We can't solve problems by using the same kind of thinking we used when we created them.” -- Einstein
If you are posting code then please use [code] [/code] tags around it. The forum will link class names to docs, add syntax highlighting, and won't mangle your code. Above all, it makes your question easier to address.