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. About Program Framework Design
Forum Update on Monday, May 27th 2025

About Program Framework Design

Scheduled Pinned Locked Moved Unsolved General and Desktop
pattern-design
2 Posts 2 Posters 343 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.
  • E Offline
    E Offline
    Ehehe
    wrote on last edited by
    #1

    I have written a serial debug tool, it can send or write data by Serial Port, the main function is send or receive file in different protocol. Now I want to add Ethernet communication type, such as TCP-Server, TCP-Client, UDP. It is easy to implement this feature, but the program framework is very ugly, or no framework at all.

    I know I should design a abstract class which has series of interfaces: write(), read(), close(), open(), etc. However it has many other problems, such as signal/slot, status flag, QSerialPort, QTcpSocket and other minor details I do not know how to do.

    Ridiculous, it likes I know the destination, and I have a bike, but do not know the way, hope you know what I mean.

    What I need is a opensource program, or a little demo, which realize the separation of the underlying communication method from the upper application (best is the Qt program). It is a programming thought, and is very important, I need to learn it from opensource program or demo, then apply it in my this and future project.

    0_1556502284597_face1.png

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You can take a look at the KDE projects various core applications. They usually implement things nicely in that project.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

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