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. How to add a new function to a pre widget class to access in my application with out creating it as seperate class.
Forum Updated to NodeBB v4.3 + New Features

How to add a new function to a pre widget class to access in my application with out creating it as seperate class.

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 270 Views
  • 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.
  • L Offline
    L Offline
    Lavanya
    wrote on last edited by
    #1

    I am writing a serial port qt application in which only one header file one cpp file and one main cpp file is there .
    Everything working fine when i opened serial port of write/read this i confirmed with qdebug messages i wrote to print. But nothing is printing on my terminal side in system but i can see data in text box. later i come to know local echo is not set through the qt application where to do so i saw reference example where they created seperate class and define echo set function and used in main class.
    1.is that only method to print sent data in console along with text box in ui
    2.if any other way can some one please guide me how to create a proper connection between opened terminal in system to textbox widget in my application.

    jsulmJ 1 Reply Last reply
    0
    • L Lavanya

      I am writing a serial port qt application in which only one header file one cpp file and one main cpp file is there .
      Everything working fine when i opened serial port of write/read this i confirmed with qdebug messages i wrote to print. But nothing is printing on my terminal side in system but i can see data in text box. later i come to know local echo is not set through the qt application where to do so i saw reference example where they created seperate class and define echo set function and used in main class.
      1.is that only method to print sent data in console along with text box in ui
      2.if any other way can some one please guide me how to create a proper connection between opened terminal in system to textbox widget in my application.

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

      @Lavanya Can you please explain better? What echo function do you mean? What example do you mean?

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

      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