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?
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?