Does Qt support a data base?
-
Hi!
I am doing a project interfacing the OV7670 Camera Module with a PIC Microcontroller.
The PIC will act as the master and OV7670 as a slave. I will be connecting the PIC to a PC to send via UART the camera snapshot to screen.
I have this question: Is it best to use Visual Basic to view the snapshot or use Qt (qSerialTerm)?
Also I would like to store image data to a database. So above question applies here also. -
is it best to use Visual Basic to view the snapshot or use Qt (qSerialTerm)?
do you mean http://sourceforge.net/projects/qst/ ? for qSerialTerm
Yes, Qt has good for databases. Like sqlite which is good for such projects.
To use QT you should know C++ to some degree.
-
@mrjj
Yes I mean qSerialTerm found in http://sourceforge.net/projects/qst/So SQLite can be be used with Qt?
Yes I know that I must a knowledge of C++ to use Qt.
-
@SweetOrange
ah. well it comes with source so could give you fast start to
connect and download data from camera.
Qt does have a serial class, you can use too.yes, and easy to use.
#include <QtSql/QSqlDatabase> QSqlDatabase db; db = QSqlDatabase::addDatabase ( "QSQLITE" ); db.setDatabaseName ( DBPath ); if ( db.open() ) { // run some sql } db.close();
-
Hi,
I have the qSerialTerm code from Jorge Aparicio.
It doesn't compile, Can someone have a look? I am running Qt 5.5.0
Some of the include files are not recognized due to inconsistencies between versions (I think)How do I attach files?
-
Hi,
Add
QT += widgets
in the qst.pro file -> Widgets have moved to their own module in Qt 5
Remove the QtGui in includes that uses it -> Again widgets have modev to their own module
Replace the failing toAscii calls by toLatin1 -> toAscii has been obsoleted. -
In seriaportwidget.h and mainwindow.h header files the following gives an error
[code]
#include <QtAddOnSerialPort/serialport.h>
#include <QtAddOnSerialPort/serialportinfo.h>
[\code]C:\Users\Alexandros\Desktop\qSerialTerm-master\mainwindow.h:26: error: QtAddOnSerialPort/serialport.h: No such file or directory
#include <QtAddOnSerialPort/serialport.h> -
Did you follow the README file and got the sources of QExtSerialPort ?
-
I've decided to start building a simple application and build on that to make a gui. So I am using example "enumerator example". When run it detects my usb ftdi cable in COM4.
Can you suggest a good book regarding Qt? -
You can find a nice list in the wiki
-
Regarding example "enumerator" I have created a project called MySerialPort and I have copied the enumerator main.cpp file to my project MySerialPort sources files. I have left the mainwindow.cpp and mainwindow.h files untouched and the form as well. When I run my project I get following errors that I don't understand:
Errors are in a jpg file. How do I attach it?
Ok here it is: http://s8.postimg.org/mume1au79/Build_Errors2_10_12_15.jpg -
@SweetOrange
hi you can use postimage.org
and upload it
and then paste link here. Just click the button to get it.
You can also right click the error and copy & paste it. -
Did you add
QT += serialport
to your .pro file ? -
@SGaist Thanks now my short code compiles. More questions are on the way as I build on the code.
-
Good, then for other questions please open a new thread as it will not be related to this problem.
Now that you have it building, please mark the thread as solved using the "Topic Tool" button so that other forum users may know a solution has been found :)
You should also change the thread title, the question was about serial port and not database.
-
@SGaist The question regarding the enumerator has been answered but not regarding the Jorge aparichio code. Anyway I'll create a new post since I am expanding the enumerator code.