[Qt-interest] QWidget: Must construct a QApplication before a QPaintDevice
Andre Somers
andre at familiesomers.nl
Tue Sep 1 10:24:12 CEST 2009
J-P Nurmi wrote:
> On Tue, Sep 1, 2009 at 10:40 AM, Andre Somers<andre at familiesomers.nl> wrote:
>
>> I would really appreciate any more pointers, especially on how I can debug a
>> case like this that only appears in release mode. I now feel like I am
>> stumbeling around in the dark...
>>
> A wild guess. Your project consists of an app and some lib, am I
> right? If so, make sure to compile them _both_ in the same mode, ie.
> don't mix debug and release.
>
Thanks for the suggestion.
Yes, you are right. It is an application that loads plugin components to
do the actual work. The plugin (there is only one at the moment) and the
application are both build in the same mode. Your reply did give me an
idea for one more thing to test: removing the plugin from the plugin
directory so it is simply not loaded does not solve the problem. In
debug mode, the program will simply run without any available usefull
components. That would mean the issue is not in the plugin, but in the
main application. That does narrow it down considerably :-)
I will keep looking...
André
More information about the Qt-interest-old
mailing list