PDA

View Full Version : How to give QextSerialPort example a Gui?



Jeroenbruinsma
6th January 2011, 17:00
Hello,

I trying to give the QextSerialPort function a gui. I wanna make a program to read out the serial port, and place specific data in different boxes.(and later download these data to internet)

I have followed this guide:

http://www.qtcentre.org/threads/32830-HowTo-use-QextSerialPort-classes


Ok, I finally managed to make it work.
I'm new to Qt, so I still don't know very well how .pro files behave.

If you are having problems to make the examples work in windows 7 do the following:

1 - Create a new Qt project (Qt Console Application) in the folder myQext (you can put it anywhere)

2 - copy all the .h and .cpp files from the "qextserialport-1.2win-alpha" folder to the myQext folder. That should be 10 files.

3 - copy the PortListener.h and PortListener.cpp files from "qextserialport-1.2win-alpha/examples/event/"

4 - Add all those 12 files to your project.

5 - replace the contains of your main.cpp file by the main.cpp file in the event folder.

6 - Save all. Run qmake. Build all. Execute.

*note: you do not need to edit the .pro file.


I deleted some more linux filles, and now the example works, but i want to change the console into a gui.. How to do this?

luisvt
5th March 2012, 01:40
Maybe this link can help you

http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=5&cts=1330911285494&ved=0CFYQrAIoADAE&url=http%3A%2F%2Fwww.qtforum.org%2Farticle%2F37460 %2Fqextserialport-example-hyperterminal-linux.html&ei=FQVUT9TCBcbetgepprHHDQ&usg=AFQjCNF20EQgzS8D0O79nNPIHqcyn5m3yw&sig2=LtoWLEAFnemAhrBs0D3XsQ