Quote Originally Posted by RSX View Post
UI is my main window (inherits QWidget) and the only warning I get is "Invalid parameter passed to C runtime function.".
This is an error not a warning. The warning goes to the console that you can't see without a development environment.

Anyway, the problem disappeared after declaring ui on heap and initializing it with the new keyword.
...after QApplication is initalized.