Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Does Qt support a data base?

Does Qt support a data base?

Scheduled Pinned Locked Moved General and Desktop
16 Posts 3 Posters 5.4k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mrjjM mrjj

    @SweetOrange

    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.

    S Offline
    S Offline
    SweetOrange
    wrote on last edited by
    #3

    @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.

    mrjjM 1 Reply Last reply
    0
    • S SweetOrange

      @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.

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #4

      @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();
      
      1 Reply Last reply
      0
      • S Offline
        S Offline
        SweetOrange
        wrote on last edited by
        #5

        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?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #6

          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.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SweetOrange
            wrote on last edited by SweetOrange
            #7

            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>

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #8

              Did you follow the README file and got the sources of QExtSerialPort ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SweetOrange
                wrote on last edited by
                #9

                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?

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #10

                  You can find a nice list in the wiki

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SweetOrange
                    wrote on last edited by SweetOrange
                    #11

                    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

                    mrjjM 1 Reply Last reply
                    0
                    • S SweetOrange

                      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

                      mrjjM Offline
                      mrjjM Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on last edited by mrjj
                      #12

                      @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.

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #13

                        Did you add QT += serialport to your .pro file ?

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        S 1 Reply Last reply
                        0
                        • SGaistS SGaist

                          Did you add QT += serialport to your .pro file ?

                          S Offline
                          S Offline
                          SweetOrange
                          wrote on last edited by
                          #14

                          @SGaist Thanks now my short code compiles. More questions are on the way as I build on the code.

                          1 Reply Last reply
                          0
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #15

                            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.

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            S 1 Reply Last reply
                            0
                            • SGaistS SGaist

                              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.

                              S Offline
                              S Offline
                              SweetOrange
                              wrote on last edited by SweetOrange
                              #16

                              @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.

                              1 Reply Last reply
                              0

                              • Login

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • Users
                              • Groups
                              • Search
                              • Get Qt Extensions
                              • Unsolved