Go Down

Topic: A Qt GUi (Read 4934 times) previous topic - next topic



I have been working on a GUI made with Qt Creator.  Here http://code.google.com/p/aqtlow/wiki/DigTempDemo is a link to it if anyone wants to try it.

I have only ran it on Linux.  Being Qt, it should be able to run on windows if you can figure out how to get QExtSerialPort to compile, but I don't have the patience for it.


No experience with Qt, but it looks well done, also good to have the instruction vids included (bonuspoints ;)

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)


Looks nice from what I can see.

Rob Gray aka the GRAYnomad www.robgray.com


Ohh dude sorry to bother you on many website but I really want to try out your program. it looks rad
Im using Windows, fairly new to QT
and included all this:
INCLUDEPATH += qextserialport/src
INCLUDEPATH += C:\QtSDK\Desktop\Qt\4.7.4\mingw\include
INCLUDEPATH += C:\QtSDK\mingw\include
INCLUDEPATH += C:/Qt/qextserialport-1.2win-alpha/
INCLUDEPATH +=C:\QtSDK\QtSources\4.8.1\include

LIBS +=  C:\Qt\qextserialport-1.2win-alpha\build\libqextserialportd.a
LIBS +=C:\QtSDK\QtSources\4.8.1\src\corelib\kernel\*.h
LIBS +=C:\QtSDK\QtSources\4.8.1\src\corelib\thread\*.h
LIBS +=C:\QtSDK\QtSources\4.8.1\src\corelib\thread\*.cpp
LIBS +=C:\QtSDK\QtSources\4.8.1\include\QtCore\private\*.h

Im getting 1 error:
C:\Qt_Programs\DigTemp\QT Creator\aQtLow\release\moc_qextserialport.cpp:60: error: definition of static data member 'QextSerialPort::staticMetaObjectExtraData' of dllimport'd class
Please let me know if you know how to fix this.



Not too sure about that problem.  I have only been running on Linux, so I have not had much practice getting qextserialport to compile in windows.

One guy told me changed the win32 section in the .pro file as follows to get it to compile on windows: 
#        SOURCES +=  qextserialport/src/win_qextserialport.cpp
    DEFINES    += WINVER=0x0501 # needed for mingw to pull in appropriate dbt business...probably a better way to do this
    LIBS       += -lsetupapi
    LIBS       +=D:\qt\4.7.3\demos\qextserialport\src\build\qextserialport1.dll

I found a guide here that looks promising:


Got it to build in XP by going to the newer version of QExtSerialPort 1.2Beta2 and replacing all the references to it in the .pro file with:

# Link to QExtSerialPort per their instructions.
# This "pri" method became available with version 1.2Beta2
# This should be the only mention of qextserailport in this pro file.

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131