{"id":9424,"date":"2019-03-31T19:57:36","date_gmt":"2019-03-31T19:57:36","guid":{"rendered":"http:\/\/blog.bachi.net\/?p=9424"},"modified":"2019-04-20T13:49:52","modified_gmt":"2019-04-20T13:49:52","slug":"qt-serial-port","status":"publish","type":"post","link":"https:\/\/blog.bachi.net\/?p=9424","title":{"rendered":"Qt Serial Port"},"content":{"rendered":"<p><a href=\"https:\/\/doc.qt.io\/qt-5\/qtserialport-index.html\">Qt Serial Port<\/a><br \/>\n<a href=\"https:\/\/doc.qt.io\/qt-5\/qtserialport-examples.html\">Qt Serial Port Examples<\/a><br \/>\n<a href=\"https:\/\/doc.qt.io\/qt-5\/qtserialport-creadersync-main-cpp.html\">Qt 5.12 Qt Serial Port Command Line Reader Sync Example main.cpp Example File<\/a><br \/>\n<a href=\"https:\/\/doc.qt.io\/qt-5\/qtserialport-cenumerator-example.html\">Qt 5.12 Qt Serial Port Qt Serial Port Examples Command Line Enumerator Example<\/a><br \/>\n<a href=\"https:\/\/doc.qt.io\/qt-5\/qtserialport-blockingmaster-example.html\">Qt 5.12 Qt Serial Port Qt Serial Port Examples Blocking Master Example<\/a><br \/>\n<a href=\"https:\/\/wiki.qt.io\/Qt_Serial_Port\">Qt Serial Port<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ grep -Er &quot;emit \\w*&#x5B;-&gt;.]*w*readyRead&quot;\r\n<\/pre>\n<pre class=\"brush: plain; collapse: true; light: false; title: Result; toolbar: true; notranslate\" title=\"Result\">\r\nqtbase\/dist\/changes-4.3.0:    * &#x5B;142853] Now continues to emit readyRead() if the peer temporarily\r\nqtbase\/src\/corelib\/doc\/snippets\/code\/src_corelib_io_qprocess.cpp:\/\/ QProcess will emit readyRead() once &quot;more&quot; starts printing\r\nqtbase\/src\/corelib\/io\/qbuffer.cpp:    emit q-&gt;readyRead();\r\nqtbase\/src\/corelib\/io\/qiodevice.cpp:    you should always emit readyRead() when new data has arrived (do not\r\nqtbase\/src\/corelib\/io\/qiodevice.cpp:    buffers). Do not emit readyRead() in other conditions.\r\nqtbase\/src\/corelib\/io\/qiodevice.cpp:    which channel triggers QIODevice to emit readyRead().\r\nqtbase\/src\/corelib\/io\/qprocess.cpp:            emit q-&gt;readyRead();\r\nqtbase\/src\/corelib\/io\/qprocess.cpp:        emit q-&gt;readyReadStandardOutput(QProcess::QPrivateSignal());\r\nqtbase\/src\/corelib\/io\/qprocess.cpp:        emit q-&gt;readyReadStandardError(QProcess::QPrivateSignal());\r\nqtbase\/src\/corelib\/io\/qprocess.cpp:    which channel triggers QProcess to emit readyRead().\r\nqtbase\/src\/corelib\/io\/qprocess.cpp:    function, QProcess will no longer emit readyRead(), and data can no\r\nqtbase\/src\/corelib\/io\/qwindowspipereader.cpp:        emit readyRead();\r\nqtbase\/src\/network\/access\/qftp.cpp:            emit readyRead();\r\nqtbase\/src\/network\/access\/qhttp2protocolhandler.cpp:                emit httpReply-&gt;readyRead();\r\nqtbase\/src\/network\/access\/qhttpnetworkconnectionchannel.cpp:            emit reply-&gt;readyRead();\r\nqtbase\/src\/network\/access\/qhttpprotocolhandler.cpp:                    emit m_reply-&gt;readyRead();\r\nqtbase\/src\/network\/access\/qhttpprotocolhandler.cpp:                        emit m_reply-&gt;readyRead();\r\nqtbase\/src\/network\/access\/qhttpthreaddelegate_p.h:        emit readyRead();\r\nqtbase\/src\/network\/access\/qnetworkreplyhttpimpl.cpp:    emit q-&gt;readyRead();\r\nqtbase\/src\/network\/access\/qnetworkreplyhttpimpl.cpp:    \/\/ emit readyRead before downloadProgress incase this will cause events to be\r\nqtbase\/src\/network\/access\/qnetworkreplyhttpimpl.cpp:    \/\/ Only emit readyRead when actual data is there\r\nqtbase\/src\/network\/access\/qnetworkreplyhttpimpl.cpp:    \/\/ emit readyRead before downloadProgress incase this will cause events to be\r\nqtbase\/src\/network\/access\/qnetworkreplyhttpimpl.cpp:        emit q-&gt;readyRead();\r\nqtbase\/src\/network\/access\/qnetworkreplyhttpimpl.cpp:        \/\/ No bytes from upload byte device. There will be bytes later, it will emit readyRead()\r\nqtbase\/src\/network\/access\/qnetworkreplyhttpimpl.cpp:    \/\/ emit readyRead before downloadProgress incase this will cause events to be\r\nqtbase\/src\/network\/access\/qnetworkreplyhttpimpl.cpp:        emit q-&gt;readyRead();\r\nqtbase\/src\/network\/access\/qnetworkreplyimpl.cpp:    \/\/ emit readyRead before downloadProgress incase this will cause events to be\r\nqtbase\/src\/network\/access\/qnetworkreplyimpl.cpp:    emit q-&gt;readyRead();\r\nqtbase\/src\/network\/access\/qnetworkreplyimpl.cpp:    emit q-&gt;readyRead();\r\nqtbase\/src\/network\/access\/qnetworkreplyimpl.cpp:    \/\/ emit readyRead before downloadProgress incase this will cause events to be\r\nqtbase\/src\/network\/access\/qnetworkreplyimpl.cpp:    \/\/ Only emit readyRead when actual data is there\r\nqtbase\/src\/network\/access\/qnetworkreplyimpl.cpp:    \/\/ emit readyRead before downloadProgress incase this will cause events to be\r\nqtbase\/src\/network\/access\/qnetworkreplyimpl.cpp:        emit q-&gt;readyRead();\r\nqtbase\/src\/network\/access\/qnetworkreplywasmimpl.cpp:    emit q-&gt;readyRead();\r\nqtbase\/src\/network\/access\/qspdyprotocolhandler.cpp:        emit httpReply-&gt;readyRead();\r\nqtbase\/src\/network\/socket\/qabstractsocket.cpp:    \/\/ Only emit readyRead() when not recursing.\r\nqtbase\/src\/network\/socket\/qabstractsocket.cpp:        emit q-&gt;readyRead();\r\nqtbase\/src\/network\/ssl\/qsslsocket.cpp:        emit q-&gt;readyRead();\r\nqtbase\/src\/network\/ssl\/qsslsocket_mac.cpp:                emit q-&gt;readyRead();\r\nqtbase\/src\/network\/ssl\/qsslsocket_openssl.cpp:                emit q-&gt;readyRead();\r\nqtbase\/src\/network\/ssl\/qsslsocket_winrt.cpp:        emit q-&gt;readyRead();\r\nqtbase\/tests\/auto\/network\/access\/qnetworkreply\/tst_qnetworkreply.cpp:        emit readyRead();\r\nqtbase\/tests\/auto\/network\/access\/qnetworkreply\/tst_qnetworkreply.cpp:        emit readyRead();\r\nqtbase\/tests\/auto\/xml\/sax\/qxmlinputsource\/tst_qxmlinputsource.cpp:            emit readyRead();\r\nqtbase\/tests\/benchmarks\/network\/access\/qnetworkreply\/tst_qnetworkreply.cpp:    void start() { state = Started; emit readyRead(); }\r\nqtbase\/tests\/benchmarks\/network\/access\/qnetworkreply\/tst_qnetworkreply.cpp:    void stop() { state = Stopped; emit readyRead(); }\r\nqtbase\/tests\/benchmarks\/network\/access\/qnetworkreply\/tst_qnetworkreply.cpp:    void start() { state = Started; emit readyRead(); }\r\nqtconnectivity\/src\/bluetooth\/qbluetoothsocket_bluez.cpp:        emit q-&gt;readyRead();\r\nqtconnectivity\/src\/bluetooth\/qbluetoothsocket_osx.mm:                emit q_ptr-&gt;readyRead();\r\nqtconnectivity\/src\/bluetooth\/qbluetoothsocket_osx.mm:        emit q_ptr-&gt;readyRead();\r\nqtconnectivity\/src\/bluetooth\/qbluetoothsocket_osx.mm:    }   \/\/ else connectToService must check and emit readyRead!\r\nqtconnectivity\/src\/bluetooth\/qbluetoothsocket_winrt.cpp:    emit q-&gt;readyRead();\r\nqtconnectivity\/src\/nfc\/qllcpsocket_android_p.cpp:        emit q-&gt;readyRead();\r\nqtdeclarative\/src\/plugins\/qmltooling\/packetprotocol\/qpacketprotocol.cpp:                emit readyRead();\r\nqtdeclarative\/tests\/auto\/qml\/debugger\/shared\/qqmldebugprocess.cpp:        emit readyReadStandardOutput();\r\nqtdeclarative\/tests\/auto\/qml\/qqmltypeloader\/tst_qqmltypeloader.cpp:        emit readyRead();\r\nqtmultimedia\/src\/plugins\/alsa\/qalsaaudioinput.cpp:    emit readyRead();\r\nqtmultimedia\/src\/plugins\/coreaudio\/coreaudioinput.mm:        emit readyRead();\r\nqtmultimedia\/src\/plugins\/coreaudio\/coreaudiooutput.mm:        emit readyRead();\r\nqtmultimedia\/src\/plugins\/coreaudio\/coreaudiooutput.mm:            emit readyRead();\r\nqtmultimedia\/src\/plugins\/pulseaudio\/qaudioinput_pulse.cpp:    emit readyRead();\r\nqtmultimedia\/src\/plugins\/qnx-audio\/audio\/qnxaudioinput.cpp:    emit readyRead();\r\nqtmultimedia\/src\/plugins\/wasapi\/qwasapiaudioinput.cpp:        emit m_eventDevice-&gt;readyRead();\r\nqtmultimedia\/src\/plugins\/windowsaudio\/qwindowsaudioinput.cpp:    emit readyRead();\r\nqtmultimedia\/src\/plugins\/windowsaudio\/qwindowsaudioinput.cpp:    emit readyRead();\r\nqtremoteobjects\/src\/remoteobjects\/qconnection_qnx_server.cpp:            emit io-&gt;readyRead();\r\nqtserialport\/src\/serialport\/qserialport_unix.cpp:    \/\/ only emit readyRead() when not recursing, and only if there is data available\r\nqtserialport\/src\/serialport\/qserialport_unix.cpp:        emit q-&gt;readyRead();\r\nqtserialport\/src\/serialport\/qserialport_win.cpp:    emit q-&gt;readyRead();\r\nqtwebengine\/tests\/auto\/widgets\/qwebengineprofile\/tst_qwebengineprofile.cpp:        emit readyRead();\r\nqtwebsockets\/src\/websockets\/qwebsocketserver_p.cpp:            emit pTcpSocket-&gt;readyRead();\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Qt Serial Port Qt Serial Port Examples Qt 5.12 Qt Serial Port Command Line Reader Sync Example main.cpp Example File Qt 5.12 Qt Serial Port Qt Serial Port Examples Command Line Enumerator Example Qt 5.12 Qt Serial Port Qt Serial Port Examples Blocking Master Example Qt Serial Port $ grep -Er &quot;emit \\w*&#x5B;-&gt;.]*w*readyRead&quot; qtbase\/dist\/changes-4.3.0: * [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-9424","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/9424","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9424"}],"version-history":[{"count":2,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/9424\/revisions"}],"predecessor-version":[{"id":9497,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/9424\/revisions\/9497"}],"wp:attachment":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9424"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}