Russian Qt Forum

Программирование => Общий => Тема начата: PoX от Октябрь 13, 2012, 16:55



Название: QT debug
Отправлено: PoX от Октябрь 13, 2012, 16:55
Dear Team,
I have one question.
I have a program written by QT 4.3.3.
My program had worked in the past. But after format of OS the program couldn't work.
It says:
"QWidget: Must construct a QApplication before a QPaintDevice".

I have not changed anything in source of Program. Just have installed OS, QT and want to use the program.

Maybe anyone can suggest what is the problem?
OR
Please help me to debug the program and find the problem. How can I do it on Linux via Command Line.

I have used Debian linux, when my program had worked. Now I have tried on Debian and Centos and the same problem.

Thanks in advance.


Название: Re: QT debug
Отправлено: cya-st от Октябрь 13, 2012, 18:37
May be I can help, but I should look at the sources


Название: Re: QT debug
Отправлено: Serr500 от Октябрь 13, 2012, 21:56
You are using QWT? Compile your program in release mode.


Название: Re: QT debug
Отправлено: alex312 от Октябрь 14, 2012, 12:40
This problem occurs when the program is compiled as debug,  loads the release library. You must properly configure the search path for libraries.