Qt4

14 posts / 0 new
Last post
zanga
Qt4

Stie cineva cum fac sa fac o interfata la un cod C++ in Qt 4?...in 3 am vazut ca se pleak de la sursa dar in 4 nu imi dau seama cum se face...

Syl
Syl's picture
Raspuns: Qt4

Reformulează te rog! Sau, mai bine, citeşte documentaţia de la Trolltech.
Dacă vrei un exemplu, uite primul program scris de mine în Qt4: QPdf2Swf.

[url=http://toxic-chat.sourceforge.net/]ToXic Chat[/url]. Come on people, let's talk sick! | [url=http://sourceforge.net/export/rss2_projnews.php?group_id=129863]Stiri RSS[/url]
[url=http://www.caramida-verde.as.ro/]Cărămida Verde[/url]: intelige

zanga
Raspuns: Qt4

Nu intelegeam cum se face legatura de la semnale la functii dar in exemplul tau am vazut ca totul e in cpp...codurile le scrii in assistant? sau ce ar putea sa ma mai ajute sa scriu mai usor codurile.

oblio
Raspuns: Qt4

Da, Qt presupune scrierea de cod :)

Ce ai tu de făcut acolo? Sunt şanse să fie nevoie să ştii programare dacă vrei să "utilizezi" C++ :)

Linux Soft. O comunitate Linux deschisă.

zanga
Raspuns: Qt4

Codul in C++ e facut si functional dar cu interfata text...eu vreau sa fac interfata grafica si acum incerc sa ma dumiresc cum se face din exemplul lui Syl+doc Trolltech...

Syl
Syl's picture
Raspuns: Qt4

Nu intelegeam cum se face legatura de la semnale la functii dar in exemplul tau am vazut ca totul e in cpp...codurile le scrii in assistant? sau ce ar putea sa ma mai ajute sa scriu mai usor codurile.
wtf???
Assistant-ul e programul de Help! Nu are nici o legatura cu scrierea codului.
Opţional desenezi form-urile în Designer şi poţi crea legăturile pt câteva semnale şi sloturi simple (ca de ex la semnalul "clicked()" butonului "Close" să apelezi slotul "accept()" al form-ului) pentru care nu trebuie sa mai scrii cod.
Apoi într-un editor text oarecare, sau într-un IDE (KDevelop, M$ Visual Studio .NET) scrii codul (fişiere .h şi .cpp). La final, în directorul unde se află form-urile, .h-urile şi .cpp-urile îţi generezi un fişier proiect ( .pro ) pe care îl poţi customiza mai apoi. Pe baza acelui .pro generezi un Makefile şi compilezi.
Un exemplu

[url=http://toxic-chat.sourceforge.net/]ToXic Chat[/url]. Come on people, let's talk sick! | [url=http://sourceforge.net/export/rss2_projnews.php?group_id=129863]Stiri RSS[/url]
[url=http://www.caramida-verde.as.ro/]Cărămida Verde[/url]: intelige

zanga
Raspuns: Qt4

greseala mea...am vaz dupa aia ce e assistant-ul...ms de informatii

zanga
Raspuns: Qt4

Nu pot sa compilez exemplele date in Qt nemodificate ...am atasat eroarea...ce pot sa mai fac?

Syl
Syl's picture
Raspuns: Qt4

da paste la succesiunea de comenzi pe care ai dat-o ca sa compilezi codul ala

[url=http://toxic-chat.sourceforge.net/]ToXic Chat[/url]. Come on people, let's talk sick! | [url=http://sourceforge.net/export/rss2_projnews.php?group_id=129863]Stiri RSS[/url]
[url=http://www.caramida-verde.as.ro/]Cărămida Verde[/url]: intelige

zanga
Raspuns: Qt4

pai
qmake -project
qmake
nmake

folosesc qt versiunea de win cu visual studio 6

pe linux la fel nu merge

Syl
Syl's picture
Raspuns: Qt4

Eu am Qt 4.2.1 cu mingw. Uite cum fac eu:
- deschid consola Qt:
Start > Programs > Qt by Trolltech v4.2.1 (Open Source) > Qt 4.2.1 Command Prompt

Setting up a MinGW/Qt only environment...
-- QTDIR set to C:\Qt\4.2.1
-- PATH set to C:\Qt\4.2.1\bin
-- Adding C:\MinGW\bin to PATH
-- Adding C:\WINDOWS\System32 to PATH
-- QMAKESPEC set to win32-g++

C:\Qt\4.2.1>

- aleg un exemplu la intamplare si incep compilarea:

C:\Qt\4.2.1\examples\desktop>dir
 Volume in drive C has no label.
 Volume Serial Number is 04E5-1677

 Directory of C:\Qt\4.2.1\examples\desktop

26.10.2006  20:53              .
26.10.2006  20:53              ..
26.10.2006  20:53              systray
26.10.2006  20:53              screenshot
20.10.2006  18:27               317 desktop.pro
20.10.2006  18:27             1.417 README
               2 File(s)          1.734 bytes
               4 Dir(s)     790.540.288 bytes free

C:\Qt\4.2.1\examples\desktop>qmake

C:\Qt\4.2.1\examples\desktop>make
cd screenshot && mingw32-make -f Makefile
mingw32-make[1]: Entering directory `C:/Qt/4.2.1/examples/desktop/screenshot'
mingw32-make -f Makefile.Release
mingw32-make[2]: Entering directory `C:/Qt/4.2.1/examples/desktop/screenshot'
g++ -c -O2 -O2 -frtti -fexceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_D
LL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
 -I"C:/Qt/4.2.1/include/QtCore" -I"C:/Qt/4.2.1/include/QtCore" -I"C:/Qt/4.2.1/in
clude/QtGui" -I"C:/Qt/4.2.1/include/QtGui" -I"C:/Qt/4.2.1/include" -I"C:/Qt/4.2.
1/include/ActiveQt" -I"tmp\moc\release_shared" -I"." -I"..\..\..\mkspecs\win32-g
++" -o tmp\obj\release_shared\main.o main.cpp
g++ -c -O2 -O2 -frtti -fexceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_D
LL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
 -I"C:/Qt/4.2.1/include/QtCore" -I"C:/Qt/4.2.1/include/QtCore" -I"C:/Qt/4.2.1/in
clude/QtGui" -I"C:/Qt/4.2.1/include/QtGui" -I"C:/Qt/4.2.1/include" -I"C:/Qt/4.2.
1/include/ActiveQt" -I"tmp\moc\release_shared" -I"." -I"..\..\..\mkspecs\win32-g
++" -o tmp\obj\release_shared\screenshot.o screenshot.cpp
c:\Qt\4.2.1\bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG
-DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"C:/Qt/4.2.1/i
nclude/QtCore" -I"C:/Qt/4.2.1/include/QtCore" -I"C:/Qt/4.2.1/include/QtGui" -I"C
:/Qt/4.2.1/include/QtGui" -I"C:/Qt/4.2.1/include" -I"C:/Qt/4.2.1/include/ActiveQ
t" -I"tmp\moc\release_shared" -I"." -I"..\..\..\mkspecs\win32-g++" -D__GNUC__ -D
WIN32 screenshot.h -o tmp\moc\release_shared\moc_screenshot.cpp
g++ -c -O2 -O2 -frtti -fexceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_D
LL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
 -I"C:/Qt/4.2.1/include/QtCore" -I"C:/Qt/4.2.1/include/QtCore" -I"C:/Qt/4.2.1/in
clude/QtGui" -I"C:/Qt/4.2.1/include/QtGui" -I"C:/Qt/4.2.1/include" -I"C:/Qt/4.2.
1/include/ActiveQt" -I"tmp\moc\release_shared" -I"." -I"..\..\..\mkspecs\win32-g
++" -o tmp\obj\release_shared\moc_screenshot.o tmp\moc\release_shared\moc_screen
shot.cpp
g++ -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runt
ime-pseudo-reloc -Wl,-s -Wl,-s -Wl,-subsystem,windows -o "release\screenshot.exe
" tmp\obj\release_shared\main.o tmp\obj\release_shared\screenshot.o tmp\obj\rele
ase_shared\moc_screenshot.o  -L"c:\Qt\4.2.1\lib" -L"c:\Qt\4.2.1\lib" -lmingw32 -
lqtmain -lQtGui4 -lQtCore4
mingw32-make[2]: Leaving directory `C:/Qt/4.2.1/examples/desktop/screenshot'
mingw32-make[1]: Leaving directory `C:/Qt/4.2.1/examples/desktop/screenshot'
cd systray && mingw32-make -f Makefile
mingw32-make[1]: Entering directory `C:/Qt/4.2.1/examples/desktop/systray'
mingw32-make -f Makefile.Release
mingw32-make[2]: Entering directory `C:/Qt/4.2.1/examples/desktop/systray'
g++ -c -O2 -O2 -frtti -fexceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_D
LL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
 -I"C:/Qt/4.2.1/include/QtCore" -I"C:/Qt/4.2.1/include/QtCore" -I"C:/Qt/4.2.1/in
clude/QtGui" -I"C:/Qt/4.2.1/include/QtGui" -I"C:/Qt/4.2.1/include" -I"C:/Qt/4.2.
1/include/ActiveQt" -I"tmp\moc\release_shared" -I"." -I"..\..\..\mkspecs\win32-g
++" -o tmp\obj\release_shared\main.o main.cpp
g++ -c -O2 -O2 -frtti -fexceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_D
LL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
 -I"C:/Qt/4.2.1/include/QtCore" -I"C:/Qt/4.2.1/include/QtCore" -I"C:/Qt/4.2.1/in
clude/QtGui" -I"C:/Qt/4.2.1/include/QtGui" -I"C:/Qt/4.2.1/include" -I"C:/Qt/4.2.
1/include/ActiveQt" -I"tmp\moc\release_shared" -I"." -I"..\..\..\mkspecs\win32-g
++" -o tmp\obj\release_shared\window.o window.cpp
c:\Qt\4.2.1\bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG
-DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"C:/Qt/4.2.1/i
nclude/QtCore" -I"C:/Qt/4.2.1/include/QtCore" -I"C:/Qt/4.2.1/include/QtGui" -I"C
:/Qt/4.2.1/include/QtGui" -I"C:/Qt/4.2.1/include" -I"C:/Qt/4.2.1/include/ActiveQ
t" -I"tmp\moc\release_shared" -I"." -I"..\..\..\mkspecs\win32-g++" -D__GNUC__ -D
WIN32 window.h -o tmp\moc\release_shared\moc_window.cpp
g++ -c -O2 -O2 -frtti -fexceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_D
LL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
 -I"C:/Qt/4.2.1/include/QtCore" -I"C:/Qt/4.2.1/include/QtCore" -I"C:/Qt/4.2.1/in
clude/QtGui" -I"C:/Qt/4.2.1/include/QtGui" -I"C:/Qt/4.2.1/include" -I"C:/Qt/4.2.
1/include/ActiveQt" -I"tmp\moc\release_shared" -I"." -I"..\..\..\mkspecs\win32-g
++" -o tmp\obj\release_shared\moc_window.o tmp\moc\release_shared\moc_window.cpp

c:\Qt\4.2.1\bin\rcc.exe -name systray systray.qrc -o tmp\rcc\release_shared\qrc_
systray.cpp
g++ -c -O2 -O2 -frtti -fexceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_D
LL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
 -I"C:/Qt/4.2.1/include/QtCore" -I"C:/Qt/4.2.1/include/QtCore" -I"C:/Qt/4.2.1/in
clude/QtGui" -I"C:/Qt/4.2.1/include/QtGui" -I"C:/Qt/4.2.1/include" -I"C:/Qt/4.2.
1/include/ActiveQt" -I"tmp\moc\release_shared" -I"." -I"..\..\..\mkspecs\win32-g
++" -o tmp\obj\release_shared\qrc_systray.o tmp\rcc\release_shared\qrc_systray.c
pp
g++ -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runt
ime-pseudo-reloc -Wl,-s -Wl,-s -Wl,-subsystem,windows -o "release\systray.exe" t
mp\obj\release_shared\main.o tmp\obj\release_shared\window.o tmp\obj\release_sha
red\moc_window.o tmp\obj\release_shared\qrc_systray.o  -L"c:\Qt\4.2.1\lib" -L"c:
\Qt\4.2.1\lib" -lmingw32 -lqtmain -lQtGui4 -lQtCore4
mingw32-make[2]: Leaving directory `C:/Qt/4.2.1/examples/desktop/systray'
mingw32-make[1]: Leaving directory `C:/Qt/4.2.1/examples/desktop/systray'

C:\Qt\4.2.1\examples\desktop>

Voila! In subdirectoarele systray si screenshot ai sa gasesti aplicatiile build-uite. In release/ gasesti binarele.

[url=http://toxic-chat.sourceforge.net/]ToXic Chat[/url]. Come on people, let's talk sick! | [url=http://sourceforge.net/export/rss2_projnews.php?group_id=129863]Stiri RSS[/url]
[url=http://www.caramida-verde.as.ro/]Cărămida Verde[/url]: intelige

zanga
Raspuns: Qt4

Pt Syl
Mai mult nu pot sa trimit ca nu tine minte CMD Prompt-ul

        c:\Qt\4.2.0\bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_EVAL -DQT_
EDITION=QT_EDITION_DESKTOP -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQ
T_THREAD_SUPPORT -I"C:/Qt/4.2.0/include/QtCore" -I"C:/Qt/4.2.0/include/QtCore" -
I"C:/Qt/4.2.0/include/QtGui" -I"C:/Qt/4.2.0/include/QtGui" -I"C:/Qt/4.2.0/includ
e" -I"." -I"C:/Qt/4.2.0/include/ActiveQt" -I"tmp\moc\release_shared" -I"." -I"..
\mkspecs\win32-msvc" -D_MSC_VER=1200 -DWIN32 torrentclient.h -o tmp\moc\release_
shared\moc_torrentclient.cpp
        c:\Qt\4.2.0\bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_EVAL -DQT_
EDITION=QT_EDITION_DESKTOP -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQ
T_THREAD_SUPPORT -I"C:/Qt/4.2.0/include/QtCore" -I"C:/Qt/4.2.0/include/QtCore" -
I"C:/Qt/4.2.0/include/QtGui" -I"C:/Qt/4.2.0/include/QtGui" -I"C:/Qt/4.2.0/includ
e" -I"." -I"C:/Qt/4.2.0/include/ActiveQt" -I"tmp\moc\release_shared" -I"." -I"..
\mkspecs\win32-msvc" -D_MSC_VER=1200 -DWIN32 torrentserver.h -o tmp\moc\release_
shared\moc_torrentserver.cpp
        c:\Qt\4.2.0\bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_EVAL -DQT_
EDITION=QT_EDITION_DESKTOP -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQ
T_THREAD_SUPPORT -I"C:/Qt/4.2.0/include/QtCore" -I"C:/Qt/4.2.0/include/QtCore" -
I"C:/Qt/4.2.0/include/QtGui" -I"C:/Qt/4.2.0/include/QtGui" -I"C:/Qt/4.2.0/includ
e" -I"." -I"C:/Qt/4.2.0/include/ActiveQt" -I"tmp\moc\release_shared" -I"." -I"..
\mkspecs\win32-msvc" -D_MSC_VER=1200 -DWIN32 trackerclient.h -o tmp\moc\release_
shared\moc_trackerclient.cpp
        cl -c -nologo -Zm200 -O1 -MD -O1 -MD -GR -GX -W3 -DUNICODE -DQT_LARGEFIL
E_SUPPORT -DQT_EVAL -DQT_EDITION=QT_EDITION_DESKTOP -DQT_DLL -DQT_NO_DEBUG -DQT_
GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"C:/Qt/4.2.0/include/QtCore" -I"C:/Q
t/4.2.0/include/QtCore" -I"C:/Qt/4.2.0/include/QtGui" -I"C:/Qt/4.2.0/include/QtG
ui" -I"C:/Qt/4.2.0/include" -I"." -I"C:/Qt/4.2.0/include/ActiveQt" -I"tmp\moc\re
lease_shared" -I"." -I"..\mkspecs\win32-msvc" -Fotmp\obj\release_shared\ @C:\DOC
UME~1\ZaNgA\LOCALS~1\Temp\nma01536.
addtorrentdialog.cpp
bencodeparser.cpp
connectionmanager.cpp
filemanager.cpp
main.cpp
mainwindow.cpp
metainfo.cpp
peerwireclient.cpp
ratecontroller.cpp
torrentclient.cpp
torrentserver.cpp
trackerclient.cpp
Generating Code...
        cl -c -nologo -Zm200 -O1 -MD -O1 -MD -W3 -DUNICODE -DQT_LARGEFILE_SUPPOR
T -DQT_EVAL -DQT_EDITION=QT_EDITION_DESKTOP -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB
-DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"C:/Qt/4.2.0/include/QtCore" -I"C:/Qt/4.2.0/
include/QtCore" -I"C:/Qt/4.2.0/include/QtGui" -I"C:/Qt/4.2.0/include/QtGui" -I"C
:/Qt/4.2.0/include" -I"." -I"C:/Qt/4.2.0/include/ActiveQt" -I"tmp\moc\release_sh
ared" -I"." -I"..\mkspecs\win32-msvc" -Fotmp\obj\release_shared\ @C:\DOCUME~1\Za
NgA\LOCALS~1\Temp\nmb01536.
sha1.c
        cl -c -nologo -Zm200 -O1 -MD -O1 -MD -GR -GX -W3 -DUNICODE -DQT_LARGEFIL
E_SUPPORT -DQT_EVAL -DQT_EDITION=QT_EDITION_DESKTOP -DQT_DLL -DQT_NO_DEBUG -DQT_
GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"C:/Qt/4.2.0/include/QtCore" -I"C:/Q
t/4.2.0/include/QtCore" -I"C:/Qt/4.2.0/include/QtGui" -I"C:/Qt/4.2.0/include/QtG
ui" -I"C:/Qt/4.2.0/include" -I"." -I"C:/Qt/4.2.0/include/ActiveQt" -I"tmp\moc\re
lease_shared" -I"." -I"..\mkspecs\win32-msvc" -Fotmp\obj\release_shared\ @C:\DOC
UME~1\ZaNgA\LOCALS~1\Temp\nmc01536.
moc_addtorrentdialog.cpp
moc_filemanager.cpp
moc_mainwindow.cpp
moc_peerwireclient.cpp
moc_ratecontroller.cpp
moc_torrentclient.cpp
moc_torrentserver.cpp
moc_trackerclient.cpp
Generating Code...
        link /LIBPATH:"c:\Qt\4.2.0\lib" /LIBPATH:"c:\Qt\4.2.0\lib" /NOLOGO /INCR
EMENTAL:NO /INCREMENTAL:NO /SUBSYSTEM:windows /OUT:release\torrent.exe @C:\DOCUM
E~1\ZaNgA\LOCALS~1\Temp\nmd01536.
main.obj : error LNK2001: unresolved external symbol "int __cdecl qInitResources
_icons(void)" (?qInitResources_icons@@YAHXZ)
peerwireclient.obj : error LNK2001: unresolved external symbol "public: virtual
bool __thiscall QAbstractSocket::waitForBytesWritten(int)" (?waitForBytesWritten
@QAbstractSocket@@UAE_NH@Z)
peerwireclient.obj : error LNK2001: unresolved external symbol "public: virtual
bool __thiscall QAbstractSocket::waitForReadyRead(int)" (?waitForReadyRead@QAbst
ractSocket@@UAE_NH@Z)
peerwireclient.obj : error LNK2001: unresolved external symbol "public: virtual
bool __thiscall QAbstractSocket::canReadLine(void)const " (?canReadLine@QAbstrac
tSocket@@UBE_NXZ)
peerwireclient.obj : error LNK2001: unresolved external symbol "public: virtual
__int64 __thiscall QAbstractSocket::bytesToWrite(void)const " (?bytesToWrite@QAb
stractSocket@@UBE_JXZ)
peerwireclient.obj : error LNK2001: unresolved external symbol "public: virtual
bool __thiscall QAbstractSocket::atEnd(void)const " (?atEnd@QAbstractSocket@@UBE
_NXZ)
peerwireclient.obj : error LNK2001: unresolved external symbol "public: virtual
void __thiscall QAbstractSocket::close(void)" (?close@QAbstractSocket@@UAEXXZ)
peerwireclient.obj : error LNK2001: unresolved external symbol "public: virtual
bool __thiscall QAbstractSocket::isSequential(void)const " (?isSequential@QAbstr
actSocket@@UBE_NXZ)
peerwireclient.obj : error LNK2001: unresolved external symbol "__declspec(dllim
port) public: virtual __thiscall QTcpSocket::~QTcpSocket(void)" (__imp_??1QTcpSo
cket@@UAE@XZ)
peerwireclient.obj : error LNK2001: unresolved external symbol "__declspec(dllim
port) public: __thiscall QTcpSocket::QTcpSocket(class QObject *)" (__imp_??0QTcp
Socket@@QAE@PAVQObject@@@Z)
peerwireclient.obj : error LNK2001: unresolved external symbol "__declspec(dllim
port) public: virtual __int64 __thiscall QAbstractSocket::bytesAvailable(void)co
nst " (__imp_?bytesAvailable@QAbstractSocket@@UBE_JXZ)
peerwireclient.obj : error LNK2001: unresolved external symbol "__declspec(dllim
port) public: void __thiscall QAbstractSocket::setReadBufferSize(__int64)" (__im
p_?setReadBufferSize@QAbstractSocket@@QAEX_J@Z)
peerwireclient.obj : error LNK2001: unresolved external symbol "__declspec(dllim
port) public: void __thiscall QAbstractSocket::connectToHost(class QString const
 &,unsigned short,class QFlags)" (__imp_?connectTo
Host@QAbstractSocket@@QAEXABVQString@@GV?$QFlags@W4OpenModeFlag@QIODevice@@@@@Z)

peerwireclient.obj : error LNK2001: unresolved external symbol "__declspec(dllim
port) public: void __thiscall QAbstractSocket::disconnectFromHost(void)" (__imp_
?disconnectFromHost@QAbstractSocket@@QAEXXZ)
peerwireclient.obj : error LNK2001: unresolved external symbol "__declspec(dllim
port) public: void __thiscall QAbstractSocket::abort(void)" (__imp_?abort@QAbstr
actSocket@@QAEXXZ)
torrentclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: void __thiscall QAbstractSocket::abort(void)" (__imp_?abort@QAbstra
ctSocket@@QAEXXZ)
torrentserver.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: void __thiscall QAbstractSocket::abort(void)" (__imp_?abort@QAbstra
ctSocket@@QAEXXZ)
peerwireclient.obj : error LNK2001: unresolved external symbol "__declspec(dllim
port) protected: void __thiscall QAbstractSocket::setSocketState(enum QAbstractS
ocket::SocketState)" (__imp_?setSocketState@QAbstractSocket@@IAEXW4SocketState@1
@@Z)
peerwireclient.obj : error LNK2001: unresolved external symbol "__declspec(dllim
port) protected: void __thiscall QAbstractSocket::setPeerPort(unsigned short)" (
__imp_?setPeerPort@QAbstractSocket@@IAEXG@Z)
peerwireclient.obj : error LNK2001: unresolved external symbol "__declspec(dllim
port) public: unsigned short __thiscall QAbstractSocket::peerPort(void)const " (
__imp_?peerPort@QAbstractSocket@@QBEGXZ)
torrentclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: unsigned short __thiscall QAbstractSocket::peerPort(void)const " (_
_imp_?peerPort@QAbstractSocket@@QBEGXZ)
peerwireclient.obj : error LNK2001: unresolved external symbol "__declspec(dllim
port) protected: void __thiscall QAbstractSocket::setPeerAddress(class QHostAddr
ess const &)" (__imp_?setPeerAddress@QAbstractSocket@@IAEXABVQHostAddress@@@Z)
peerwireclient.obj : error LNK2001: unresolved external symbol "__declspec(dllim
port) public: class QHostAddress __thiscall QAbstractSocket::peerAddress(void)co
nst " (__imp_?peerAddress@QAbstractSocket@@QBE?AVQHostAddress@@XZ)
torrentclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: class QHostAddress __thiscall QAbstractSocket::peerAddress(void)con
st " (__imp_?peerAddress@QAbstractSocket@@QBE?AVQHostAddress@@XZ)
peerwireclient.obj : error LNK2001: unresolved external symbol "__declspec(dllim
port) protected: void __thiscall QAbstractSocket::setPeerName(class QString cons
t &)" (__imp_?setPeerName@QAbstractSocket@@IAEXABVQString@@@Z)
peerwireclient.obj : error LNK2001: unresolved external symbol "__declspec(dllim
port) public: class QString __thiscall QAbstractSocket::peerName(void)const " (_
_imp_?peerName@QAbstractSocket@@QBE?AVQString@@XZ)
peerwireclient.obj : error LNK2001: unresolved external symbol "__declspec(dllim
port) protected: void __thiscall QAbstractSocket::setLocalPort(unsigned short)"
(__imp_?setLocalPort@QAbstractSocket@@IAEXG@Z)
peerwireclient.obj : error LNK2001: unresolved external symbol "__declspec(dllim
port) public: unsigned short __thiscall QAbstractSocket::localPort(void)const "
(__imp_?localPort@QAbstractSocket@@QBEGXZ)
peerwireclient.obj : error LNK2001: unresolved external symbol "__declspec(dllim
port) public: __thiscall QHostAddress::~QHostAddress(void)" (__imp_??1QHostAddre
ss@@QAE@XZ)
torrentclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: __thiscall QHostAddress::~QHostAddress(void)" (__imp_??1QHostAddres
s@@QAE@XZ)
trackerclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: __thiscall QHostAddress::~QHostAddress(void)" (__imp_??1QHostAddres
s@@QAE@XZ)
peerwireclient.obj : error LNK2001: unresolved external symbol "__declspec(dllim
port) protected: void __thiscall QAbstractSocket::setLocalAddress(class QHostAdd
ress const &)" (__imp_?setLocalAddress@QAbstractSocket@@IAEXABVQHostAddress@@@Z)

peerwireclient.obj : error LNK2001: unresolved external symbol "__declspec(dllim
port) public: class QHostAddress __thiscall QAbstractSocket::localAddress(void)c
onst " (__imp_?localAddress@QAbstractSocket@@QBE?AVQHostAddress@@XZ)
ratecontroller.obj : error LNK2001: unresolved external symbol "__declspec(dllim
port) public: enum QAbstractSocket::SocketState __thiscall QAbstractSocket::stat
e(void)const " (__imp_?state@QAbstractSocket@@QBE?AW4SocketState@1@XZ)
torrentclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: enum QAbstractSocket::SocketState __thiscall QAbstractSocket::state
(void)const " (__imp_?state@QAbstractSocket@@QBE?AW4SocketState@1@XZ)
torrentclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: virtual __thiscall QHttp::~QHttp(void)" (__imp_??1QHttp@@UAE@XZ)
trackerclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: virtual __thiscall QHttp::~QHttp(void)" (__imp_??1QHttp@@UAE@XZ)
torrentclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: bool __thiscall QTcpServer::listen(class QHostAddress const &,unsig
ned short)" (__imp_?listen@QTcpServer@@QAE_NABVQHostAddress@@G@Z)
torrentclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: __thiscall QHostAddress::QHostAddress(enum QHostAddress::SpecialAdd
ress)" (__imp_??0QHostAddress@@QAE@W4SpecialAddress@0@@Z)
torrentclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: bool __thiscall QTcpServer::isListening(void)const " (__imp_?isList
ening@QTcpServer@@QBE_NXZ)
torrentclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: void __thiscall QAbstractSocket::connectToHost(class QHostAddress c
onst &,unsigned short,class QFlags)" (__imp_?conne
ctToHost@QAbstractSocket@@QAEXABVQHostAddress@@GV?$QFlags@W4OpenModeFlag@QIODevi
ce@@@@@Z)
torrentclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: class QString __thiscall QHostAddress::toString(void)const " (__imp
_?toString@QHostAddress@@QBE?AVQString@@XZ)
torrentclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: bool __thiscall QHostAddress::operator==(class QHostAddress const &
)const " (__imp_??8QHostAddress@@QBE_NABV0@@Z)
torrentclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: enum QAbstractSocket::SocketError __thiscall QAbstractSocket::error
(void)const " (__imp_?error@QAbstractSocket@@QBE?AW4SocketError@1@XZ)
torrentclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: unsigned short __thiscall QTcpServer::serverPort(void)const " (__im
p_?serverPort@QTcpServer@@QBEGXZ)
trackerclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: unsigned short __thiscall QTcpServer::serverPort(void)const " (__im
p_?serverPort@QTcpServer@@QBEGXZ)
torrentclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: class QHostAddress __thiscall QTcpServer::serverAddress(void)const
" (__imp_?serverAddress@QTcpServer@@QBE?AVQHostAddress@@XZ)
torrentclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: __thiscall QHostAddress::QHostAddress(class QHostAddress const &)"
(__imp_??0QHostAddress@@QAE@ABV0@@Z)
trackerclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: __thiscall QHostAddress::QHostAddress(class QHostAddress const &)"
(__imp_??0QHostAddress@@QAE@ABV0@@Z)
torrentclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: __thiscall QHostAddress::QHostAddress(void)" (__imp_??0QHostAddress
@@QAE@XZ)
trackerclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: __thiscall QHostAddress::QHostAddress(void)" (__imp_??0QHostAddress
@@QAE@XZ)
torrentclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: class QHostAddress & __thiscall QHostAddress::operator=(class QHost
Address const &)" (__imp_??4QHostAddress@@QAEAAV0@ABV0@@Z)
torrentserver.obj : error LNK2001: unresolved external symbol "public: virtual c
lass QTcpSocket * __thiscall QTcpServer::nextPendingConnection(void)" (?nextPend
ingConnection@QTcpServer@@UAEPAVQTcpSocket@@XZ)
torrentserver.obj : error LNK2001: unresolved external symbol "public: virtual b
ool __thiscall QTcpServer::hasPendingConnections(void)const " (?hasPendingConnec
tions@QTcpServer@@UBE_NXZ)
torrentserver.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: __thiscall QTcpServer::QTcpServer(class QObject *)" (__imp_??0QTcpS
erver@@QAE@PAVQObject@@@Z)
torrentserver.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: virtual __thiscall QTcpServer::~QTcpServer(void)" (__imp_??1QTcpSer
ver@@UAE@XZ)
torrentserver.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: bool __thiscall QAbstractSocket::setSocketDescriptor(int,enum QAbst
ractSocket::SocketState,class QFlags)" (__imp_?set
SocketDescriptor@QAbstractSocket@@QAE_NHW4SocketState@1@V?$QFlags@W4OpenModeFlag
@QIODevice@@@@@Z)
trackerclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: __thiscall QHttp::QHttp(class QObject *)" (__imp_??0QHttp@@QAE@PAVQ
Object@@@Z)
trackerclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: void __thiscall QHttp::abort(void)" (__imp_?abort@QHttp@@QAEXXZ)
trackerclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: enum QHttp::State __thiscall QHttp::state(void)const " (__imp_?stat
e@QHttp@@QBE?AW4State@1@XZ)
trackerclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: int __thiscall QHttp::get(class QString const &,class QIODevice *)"
 (__imp_?get@QHttp@@QAEHABVQString@@PAVQIODevice@@@Z)
trackerclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: int __thiscall QHttp::setUser(class QString const &,class QString c
onst &)" (__imp_?setUser@QHttp@@QAEHABVQString@@0@Z)
trackerclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: int __thiscall QHttp::setHost(class QString const &,unsigned short)
" (__imp_?setHost@QHttp@@QAEHABVQString@@G@Z)
trackerclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: void __thiscall QHostAddress::setAddress(unsigned int)" (__imp_?set
Address@QHostAddress@@QAEXI@Z)
trackerclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: bool __thiscall QHostAddress::setAddress(class QString const &)" (_
_imp_?setAddress@QHostAddress@@QAE_NABVQString@@@Z)
trackerclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: class QByteArray __thiscall QHttp::readAll(void)" (__imp_?readAll@Q
Http@@QAE?AVQByteArray@@XZ)
trackerclient.obj : error LNK2001: unresolved external symbol "__declspec(dllimp
ort) public: enum QHttp::Error __thiscall QHttp::error(void)const " (__imp_?erro
r@QHttp@@QBE?AW4Error@1@XZ)
moc_peerwireclient.obj : error LNK2001: unresolved external symbol "__declspec(d
llimport) public: static struct QMetaObject const QTcpSocket::staticMetaObject"
(__imp_?staticMetaObject@QTcpSocket@@2UQMetaObject@@B)
moc_peerwireclient.obj : error LNK2001: unresolved external symbol "__declspec(d
llimport) public: virtual void * __thiscall QTcpSocket::qt_metacast(char const *
)" (__imp_?qt_metacast@QTcpSocket@@UAEPAXPBD@Z)
moc_peerwireclient.obj : error LNK2001: unresolved external symbol "__declspec(d
llimport) public: virtual int __thiscall QTcpSocket::qt_metacall(enum QMetaObjec
t::Call,int,void * *)" (__imp_?qt_metacall@QTcpSocket@@UAEHW4Call@QMetaObject@@H
PAPAX@Z)
moc_torrentserver.obj : error LNK2001: unresolved external symbol "__declspec(dl
limport) public: static struct QMetaObject const QTcpServer::staticMetaObject" (
__imp_?staticMetaObject@QTcpServer@@2UQMetaObject@@B)
moc_torrentserver.obj : error LNK2001: unresolved external symbol "__declspec(dl
limport) public: virtual void * __thiscall QTcpServer::qt_metacast(char const *)
" (__imp_?qt_metacast@QTcpServer@@UAEPAXPBD@Z)
moc_torrentserver.obj : error LNK2001: unresolved external symbol "__declspec(dl
limport) public: virtual int __thiscall QTcpServer::qt_metacall(enum QMetaObject
::Call,int,void * *)" (__imp_?qt_metacall@QTcpServer@@UAEHW4Call@QMetaObject@@HP
APAX@Z)
release\torrent.exe : fatal error LNK1120: 62 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.
NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~4\VC98\BIN\NMAKE.EXE' : return co
de '0x2'
Stop.

C:\Qt\4.2.0\torrent>

[ mod: editat ca să derulăm mai puţin ]

Syl
Syl's picture
Raspuns: Qt4

Se pare că nu merge linker-ul. Daca nu găseşti nimic concludent pe google, treci pe mingw.

[url=http://toxic-chat.sourceforge.net/]ToXic Chat[/url]. Come on people, let's talk sick! | [url=http://sourceforge.net/export/rss2_projnews.php?group_id=129863]Stiri RSS[/url]
[url=http://www.caramida-verde.as.ro/]Cărămida Verde[/url]: intelige

zanga
Raspuns: Qt4

Ai avut dreptate a fost o problema de linker...e mingw merge...Multumesc pt sfaturi....