Russian Qt Forum
Ноябрь 23, 2024, 03:04 *
Добро пожаловать, Гость. Пожалуйста, войдите или зарегистрируйтесь.
Вам не пришло письмо с кодом активации?

Войти
 
  Начало   Форум  WIKI (Вики)FAQ Помощь Поиск Войти Регистрация  

Страниц: [1]   Вниз
  Печать  
Автор Тема: QT debug  (Прочитано 2665 раз)
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.
Записан
cya-st
Гость
« Ответ #1 : Октябрь 13, 2012, 18:37 »

May be I can help, but I should look at the sources
Записан
Serr500
Гость
« Ответ #2 : Октябрь 13, 2012, 21:56 »

You are using QWT? Compile your program in release mode.
Записан
alex312
Хакер
*****
Offline Offline

Сообщений: 606



Просмотр профиля
« Ответ #3 : Октябрь 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.
Записан
Страниц: [1]   Вверх
  Печать  
 
Перейти в:  


Страница сгенерирована за 0.048 секунд. Запросов: 22.