Error: "Must construct a QApplication before a QWidget"
Dirk Hohndel
dirk at hohndel.org
Sat Jun 24 11:29:58 PDT 2017
> On Jun 24, 2017, at 11:16 AM, Lubomir I. Ivanov <neolit123 at gmail.com> wrote:
>
> i've updated to Qt 5.9.0 today and after building Subsurface on
> Windows i'm getting a:
>
> QWidget: Must construct a QApplication before a QWidget
> Invalid parameter passed to C runtime function.
> Invalid parameter passed to C runtime function.
>
> and the app terminates with:
> "This application has requested the Runtime to terminate it in an unusual way."
>
> the above error cannot be debugged properly most of the time (e.g. asserts).
>
> https://stackoverflow.com/questions/23804238/debugging-qwidget-must-construct-a-qapplication-before-a-qwidget-invalid-par
>
> according the comments in the thread we are probably creating a widget
> in a header somewhere before the QApplication instance in created.
>
> i'm trying to hunt what widget / header is causing that.
Oh joy - this is one of the things I hate the most about C++
Random things happening in random order that make no sense to me.
I remember all the cases in which our translations aren't loaded when object are instantiated.
Thanks for hunting this down.
/D
More information about the subsurface
mailing list