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. SerialPort class using signals and slots within a thread
Forum Updated to NodeBB v4.3 + New Features

SerialPort class using signals and slots within a thread

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 974 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.
  • S Offline
    S Offline
    seasoned_geek
    wrote on last edited by
    #1

    All,

    I'm looking for a BUILDABLE and testable example of the new SerialPort class using signals and slots within a thread which is not the GUI thread. I have found a lot of cheats/hacks that tie up a thread by calling waitForReadyRead() instead of using the actual readyRead() signal connected to a slot.

    I have a sinking suspicion the documentation is wrong and SerialPort is not a thread-safe class. If this is true I need to find a library which can actually be used within a thread without blocking an entire thread to do IO.

    Platform is 32-bit Ubuntu 12.04 LTS if it makes a difference. Windows is not spoken here.

    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