Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Separate GUI and Backend of PySide Widget Program

Separate GUI and Backend of PySide Widget Program

Scheduled Pinned Locked Moved Unsolved Qt for Python
3 Posts 2 Posters 1.6k 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.
  • J Offline
    J Offline
    JKC23
    wrote on last edited by
    #1

    I created a prototype for a program I’m developing using PySide with widgets. I later learned about QML, and from what I understand, one of its main advantages is the inherent separation of the GUI frontend and computation backend.
    After experimenting a little with QML, I like it a lot. However, one of the libraries I’m using (PyQtGraph) is a widget-based library, and I have yet to find a QML equivalent. Is there a simple/standard method of separating the frontend and backend of a widget-based program?

    Any help or guidance is greatly appreciated!

    jsulmJ 1 Reply Last reply
    0
    • J JKC23

      I created a prototype for a program I’m developing using PySide with widgets. I later learned about QML, and from what I understand, one of its main advantages is the inherent separation of the GUI frontend and computation backend.
      After experimenting a little with QML, I like it a lot. However, one of the libraries I’m using (PyQtGraph) is a widget-based library, and I have yet to find a QML equivalent. Is there a simple/standard method of separating the frontend and backend of a widget-based program?

      Any help or guidance is greatly appreciated!

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

      @JKC23 said in Separate GUI and Backend of PySide Widget Program:

      Is there a simple/standard method of separating the frontend and backend of a widget-based program?

      Well, the standard method is to devide your application in layers. The UI would be one layer which communicates with other layers like business logic layer.
      Also, take a look at https://doc.qt.io/qt-5/model-view-programming.html

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

      1 Reply Last reply
      1
      • J Offline
        J Offline
        JKC23
        wrote on last edited by
        #3

        Perfect, thank you!

        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