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. Regarding Projector Programming using QT
Forum Updated to NodeBB v4.3 + New Features

Regarding Projector Programming using QT

Scheduled Pinned Locked Moved Solved General and Desktop
30 Posts 5 Posters 3.5k Views 2 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.
  • P Offline
    P Offline
    Prath
    wrote on 24 Nov 2019, 22:25 last edited by
    #21

    Sorry for the delay guys. I tried again with the code and couldn't retrieve anything from the serial port regarding the errror.
    I got the attached error:-
    IMG_20191124_125954.jpg

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 24 Nov 2019, 22:31 last edited by
      #22

      Your MainWindow class does not have such a signal, it's one from the QSerialPort.

      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
      2
      • P Offline
        P Offline
        Prath
        wrote on 24 Nov 2019, 23:17 last edited by
        #23

        Didnt get you @SGaist .
        Could you please help me with the syntax

        1 Reply Last reply
        0
        • P Offline
          P Offline
          Prath
          wrote on 24 Nov 2019, 23:28 last edited by
          #24

          When I click on the push button the function on_pushButton_clicked is called and then I call the Qserialport to check the error. I think the code is written correctly.

          What's your take?

          J 1 Reply Last reply 25 Nov 2019, 05:59
          0
          • P Prath
            24 Nov 2019, 23:28

            When I click on the push button the function on_pushButton_clicked is called and then I call the Qserialport to check the error. I think the code is written correctly.

            What's your take?

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 25 Nov 2019, 05:59 last edited by
            #25

            @Prath said in Regarding Projector Programming using QT:

            What's your take?

            Your connect is wrong: MainWindow does NOT have signal error(QSerialPort::QSerialPort), this signal is in QSerialPort, so not in "this" but in "serial".

            And please do not post screen-shots, copy paste your code...

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            J 1 Reply Last reply 25 Nov 2019, 08:48
            3
            • J jsulm
              25 Nov 2019, 05:59

              @Prath said in Regarding Projector Programming using QT:

              What's your take?

              Your connect is wrong: MainWindow does NOT have signal error(QSerialPort::QSerialPort), this signal is in QSerialPort, so not in "this" but in "serial".

              And please do not post screen-shots, copy paste your code...

              J Online
              J Online
              JonB
              wrote on 25 Nov 2019, 08:48 last edited by
              #26

              @jsulm , @Prath

              this signal is in QSerialPort, so not in "this" but in "serial".

              Is this a case where changing to new-style signal/slot syntax would generate an error for the wrong "context" variable? Or, would testing the return result from the connect() or from https://doc.qt.io/qt-5/qmetaobject-connection.html#operator-bool in code tell the user if the connection has failed because of the wrong context?

              J 1 Reply Last reply 25 Nov 2019, 11:59
              0
              • J JonB
                25 Nov 2019, 08:48

                @jsulm , @Prath

                this signal is in QSerialPort, so not in "this" but in "serial".

                Is this a case where changing to new-style signal/slot syntax would generate an error for the wrong "context" variable? Or, would testing the return result from the connect() or from https://doc.qt.io/qt-5/qmetaobject-connection.html#operator-bool in code tell the user if the connection has failed because of the wrong context?

                J Offline
                J Offline
                jsulm
                Lifetime Qt Champion
                wrote on 25 Nov 2019, 11:59 last edited by
                #27

                @JonB Yes, new connect syntax would help here, unless MainWindow has a signal with exact same signature :-)

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                1
                • P Offline
                  P Offline
                  Prath
                  wrote on 10 Jan 2020, 06:17 last edited by
                  #28

                  Guys can we send two commands to two serial ports concurrently using QT?

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 10 Jan 2020, 07:17 last edited by
                    #29

                    If you mean use several QSerialPorts at the same time in one application then yes, no problem with that. If you mean something else, please give more details.

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

                    P 1 Reply Last reply 11 Jan 2020, 08:29
                    2
                    • S SGaist
                      10 Jan 2020, 07:17

                      If you mean use several QSerialPorts at the same time in one application then yes, no problem with that. If you mean something else, please give more details.

                      P Offline
                      P Offline
                      Prath
                      wrote on 11 Jan 2020, 08:29 last edited by
                      #30
                      This post is deleted!
                      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