Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. How to share Serial port opened in Main Window class with Dialog box class
Forum Updated to NodeBB v4.3 + New Features

How to share Serial port opened in Main Window class with Dialog box class

Scheduled Pinned Locked Moved Solved C++ Gurus
2 Posts 2 Posters 536 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
    saurabh162
    wrote on 31 Jul 2018, 07:38 last edited by
    #1

    Dear Developers,

    In my Qt project I have two C++ classes named "MainWindow" and "DialogBox"

    I used serial port class object of QT to open a serial port in MainWindow class and now I want to send and receive data from "DialogBox" class using same serial port opened in MainWindow class.

    Please tell me what is correct approach to share same serial port object between MainWindow and DialogBox Class.

    Kindly inform me if you need any other information from me.

    Thank and Regards

    Saurabh Jain

    1 Reply Last reply
    0
    • A Offline
      A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on 31 Jul 2018, 07:40 last edited by aha_1980
      #2

      @saurabh162 And this is the third same question: https://forum.qt.io/topic/93202/how-to-share-serial-port-opened-in-main-window-class-with-dialog-box-class

      Stop doing that!

      Qt has to stay free or it will die.

      1 Reply Last reply
      4

      1/2

      31 Jul 2018, 07:38

      • Login

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