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. Signal for QSerialPort is not shown on list...
Qt 6.11 is out! See what's new in the release blog

Signal for QSerialPort is not shown on list...

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 4 Posters 1.0k Views 1 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.
  • B Offline
    B Offline
    bladekel
    wrote on last edited by
    #1

    Hello to all,

    I have an interesting problem.
    I'm using QtCreator 4.8.0, Qt 5.12.0 , language is C++, and OS is windows7.

    I trying to connect a signal to catch an information comes from serial device.

    The syntax is ;
    QObject::connect(&arduino,SIGNAL(readyRead()),this,SLOT(serial_received()));

    The signal is working and catching the data... No problem on working...

    But.... I couldnt see the readyRead signal on the list while I'm writing the code...
    0_1547796563702_signal_fault.jpg
    What is the problem ?

    jsulmJ J.HilkJ 2 Replies Last reply
    0
    • B bladekel

      Hello to all,

      I have an interesting problem.
      I'm using QtCreator 4.8.0, Qt 5.12.0 , language is C++, and OS is windows7.

      I trying to connect a signal to catch an information comes from serial device.

      The syntax is ;
      QObject::connect(&arduino,SIGNAL(readyRead()),this,SLOT(serial_received()));

      The signal is working and catching the data... No problem on working...

      But.... I couldnt see the readyRead signal on the list while I'm writing the code...
      0_1547796563702_signal_fault.jpg
      What is the problem ?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @bladekel Use the new Qt5 connect syntax :-)

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

      B 1 Reply Last reply
      1
      • B bladekel

        Hello to all,

        I have an interesting problem.
        I'm using QtCreator 4.8.0, Qt 5.12.0 , language is C++, and OS is windows7.

        I trying to connect a signal to catch an information comes from serial device.

        The syntax is ;
        QObject::connect(&arduino,SIGNAL(readyRead()),this,SLOT(serial_received()));

        The signal is working and catching the data... No problem on working...

        But.... I couldnt see the readyRead signal on the list while I'm writing the code...
        0_1547796563702_signal_fault.jpg
        What is the problem ?

        J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on last edited by J.Hilk
        #3

        @bladekel I agree with @jsulm you should use the Qt5 Syntax

        but your problem is probably the lower case o in QObject

        https://wiki.qt.io/New_Signal_Slot_Syntax


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        B 1 Reply Last reply
        1
        • J.HilkJ J.Hilk

          @bladekel I agree with @jsulm you should use the Qt5 Syntax

          but your problem is probably the lower case o in QObject

          https://wiki.qt.io/New_Signal_Slot_Syntax

          B Offline
          B Offline
          bladekel
          wrote on last edited by
          #4

          @J.Hilk
          I see.. But I wrote uppercase "o" while taking screenshot... I know it has to be QObject...
          Anyway thanks...

          mrjjM 1 Reply Last reply
          0
          • B bladekel

            @J.Hilk
            I see.. But I wrote uppercase "o" while taking screenshot... I know it has to be QObject...
            Anyway thanks...

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

            @bladekel
            Hi
            Did you recently upgraded to 4.8 ?
            It might be related to
            https://bugreports.qt.io/browse/QTCREATORBUG-13558

            1 Reply Last reply
            0
            • jsulmJ jsulm

              @bladekel Use the new Qt5 connect syntax :-)

              B Offline
              B Offline
              bladekel
              wrote on last edited by
              #6

              @jsulm
              How was it?

              jsulmJ B 2 Replies Last reply
              0
              • B bladekel

                @jsulm
                How was it?

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @bladekel See the link from @J-Hilk

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

                1 Reply Last reply
                0
                • B bladekel

                  @jsulm
                  How was it?

                  B Offline
                  B Offline
                  bladekel
                  wrote on last edited by
                  #8

                  @bladekel
                  I found it....
                  Here is the new syntax...

                  
                                  connect(&arduino,&QIODevice::readyRead,this,&MainWindow::serial_received);
                  
                  1 Reply Last reply
                  2

                  • Login

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