![]() |
Здравствуйте, гость ( Вход | Регистрация )
![]() ![]() |
![]() |
Гость_klochec_v_* |
![]()
Сообщение
#1
|
Гости ![]() |
............
#include <qmotifstyle.h> ............ app.setStyle(new QMotifStyle); ............ получается страшная вещь: main.cpp link /NOLOGO delayimp.lib /DELAYLOAD:comdlg32.dll /DELAYLOAD:oleaut32.dll /DELAYLOAD:winmm.d ll /DELAYLOAD:wsock32.dll /DELAYLOAD:winspool.dll /SUBSYSTEM:console /LIBPATH:"C:\Qt\3.3.4\lib" /OUT :bin\bin.exe @C:\WINDOWS\TEMP\nm71.tmp LINK : warning LNK4199: /DELAYLOAD:comdlg32.dll ignored; no imports found from comdlg32.dll LINK : warning LNK4199: /DELAYLOAD:oleaut32.dll ignored; no imports found from oleaut32.dll LINK : warning LNK4199: /DELAYLOAD:winmm.dll ignored; no imports found from winmm.dll LINK : warning LNK4199: /DELAYLOAD:winspool.dll ignored; no imports found from winspool.dll main.obj : error LNK2001: unresolved external symbol "public: virtual class QPixmap __thiscall QMoti fStyle::stylePixmap(enum QStyle::StylePixmap,class QWidget const *,class QStyleOption const &)const " (?stylePixmap@QMotifStyle@@UBE?AVQPixmap@@W4StylePixmap@QStyle@@PBVQWidget@@ABVQStyleOption@@@Z) main.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall QMotifStyle::st yleHint(enum QStyle::StyleHint,class QWidget const *,class QStyleOption const &,class QStyleHintRetu rn *)const " (?styleHint@QMotifStyle@@UBEHW4StyleHint@QStyle@@PBVQWidget@@ABVQStyleOption@@PAVQ Style HintReturn@@@Z) main.obj : error LNK2001: unresolved external symbol "public: virtual class QSize __thiscall QMotifS tyle::sizeFromContents(enum QStyle::ContentsType,class QWidget const *,class QSize const &,class QSt yleOption const &)const " (?sizeFromContents@QMotifStyle@@UBE?AVQSize@@W4ContentsType@QStyle@@PBVQWi dget@@ABV2@ABVQStyleOption@@@Z) main.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall QMotifStyle: ![]() xelMetric(enum QStyle::PixelMetric,class QWidget const *)const " (?pixelMetric@QMotifStyle@@UBEHW4Pi xelMetric@QStyle@@PBVQWidget@@@Z) main.obj : error LNK2001: unresolved external symbol "public: virtual class QRect __thiscall QMotifS tyle::querySubControlMetrics(enum QStyle::ComplexControl,class QWidget const *,enum QStyle::SubContr ol,class QStyleOption const &)const " (?querySubControlMetrics@QMotifStyle@@UBE?AVQRect@@W4ComplexCo ntrol@QStyle@@PBVQWidget@@W4SubControl@4@ABVQStyleOption@@@Z) main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall QMotifStyle: ![]() rawComplexControl(enum QStyle::ComplexControl,class QPainter *,class QWidget const *,class QRect con st &,class QColorGroup const &,unsigned int,unsigned int,unsigned int,class QStyleOption const &)con st " (?drawComplexControl@QMotifStyle@@UBEXW4ComplexControl@QStyle@@PAVQPainter@@PBVQWi dget@@ABVQRec t@@ABVQColorGroup@@IIIABVQStyleOption@@@Z).... и все в таком духе. интересно что не так, как надо...и почему стиль не работает. в примерах стили работают. ![]() |
|
|
ViGOur |
![]()
Сообщение
#2
|
![]() Мастер ![]() ![]() ![]() ![]() ![]() ![]() Группа: Модератор Сообщений: 3296 Регистрация: 9.10.2007 Из: Москва Пользователь №: 4 Спасибо сказали: 231 раз(а) Репутация: ![]() ![]() ![]() |
1. Рекомендуется использовать не #include <qmotifstyle.h>, а #include <QMotifStyle>.
2. Модуль QtGui точно подключен? |
|
|
ViGOur |
![]()
Сообщение
#3
|
![]() Мастер ![]() ![]() ![]() ![]() ![]() ![]() Группа: Модератор Сообщений: 3296 Регистрация: 9.10.2007 Из: Москва Пользователь №: 4 Спасибо сказали: 231 раз(а) Репутация: ![]() ![]() ![]() |
Я сейчас попробовал создать простейшее приложение (QMainWindow), в main сделал так:
И все работает... ![]() |
|
|
Гость_klochec_v_* |
![]()
Сообщение
#4
|
Гости ![]() |
Я сейчас попробовал создать простейшее приложение (QMainWindow), в main сделал так: И все работает... ![]() а у меня не работает. ![]() |
|
|
ViGOur |
![]()
Сообщение
#5
|
![]() Мастер ![]() ![]() ![]() ![]() ![]() ![]() Группа: Модератор Сообщений: 3296 Регистрация: 9.10.2007 Из: Москва Пользователь №: 4 Спасибо сказали: 231 раз(а) Репутация: ![]() ![]() ![]() |
У меня версия 4.3.0.
Вот, что написано по поводу QtGui: Цитата If you use qmake to build your projects, the QtCore and QtGui modules are included by default. To link only against QtCore, add the following line to your .pro file: Оригинал здесь.
QT -= gui On Windows, if you do not use qmake or the Visual Studio Integration available to commercial licensees, you also need to link against the qtmain library. |
|
|
Гость_klochec_v_* |
![]()
Сообщение
#6
|
Гости ![]() |
У меня версия 4.3.0. Вот, что написано по поводу QtGui: Цитата If you use qmake to build your projects, the QtCore and QtGui modules are included by default. To link only against QtCore, add the following line to your .pro file: Оригинал здесь.QT -= gui On Windows, if you do not use qmake or the Visual Studio Integration available to commercial licensees, you also need to link against the qtmain library. спасибо. будем дальше воевать. |
|
|
ViGOur |
![]()
Сообщение
#7
|
![]() Мастер ![]() ![]() ![]() ![]() ![]() ![]() Группа: Модератор Сообщений: 3296 Регистрация: 9.10.2007 Из: Москва Пользователь №: 4 Спасибо сказали: 231 раз(а) Репутация: ![]() ![]() ![]() |
Так проблема решена или нет?
В чем хоть дело было? |
|
|
Гость_klochec_v_* |
![]()
Сообщение
#8
|
Гости ![]() |
|
|
|
![]() ![]() ![]() |
![]() |
|
Текстовая версия | Сейчас: 17.3.2025, 1:24 |