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. Need advice with new project (Should I use PyQT)
Forum Updated to NodeBB v4.3 + New Features

Need advice with new project (Should I use PyQT)

Scheduled Pinned Locked Moved Unsolved Qt for Python
qt for pythonpython
7 Posts 4 Posters 1.0k Views 3 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
    jash
    wrote on last edited by
    #1

    Apologies for a badly written question title. I know it doesn't give a lot of details, but I'm just beginning with PyQT and haven't developed the vocabulary to convey succinctly.
    Here's my query:
    I want to develop an interface which lets users draw a ellipses and unidirectional arrows (graph) between them. Based on this graph and its nodes and edges something happens.
    I want to know

    1. If PyQT is a good choice for this project? Or if not, what else would you suggest?
    2. how to let users draw these shapes like they would in a flowchart program?
    3. how to read the connections and then play with it?
    4. what concepts, terms, etc do I need to get familiar with to get started?
      I'm absolute beginner in pyQT with only having written a hello world but I am sure I can quickly learn if I know which way to go.

    Thanks!

    JonBJ 1 Reply Last reply
    0
    • J jash

      Apologies for a badly written question title. I know it doesn't give a lot of details, but I'm just beginning with PyQT and haven't developed the vocabulary to convey succinctly.
      Here's my query:
      I want to develop an interface which lets users draw a ellipses and unidirectional arrows (graph) between them. Based on this graph and its nodes and edges something happens.
      I want to know

      1. If PyQT is a good choice for this project? Or if not, what else would you suggest?
      2. how to let users draw these shapes like they would in a flowchart program?
      3. how to read the connections and then play with it?
      4. what concepts, terms, etc do I need to get familiar with to get started?
        I'm absolute beginner in pyQT with only having written a hello world but I am sure I can quickly learn if I know which way to go.

      Thanks!

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @jash
      Just for the PyQt question. It doesn't terribly matter whether you use C++, PySide or PyQt, they all allow you to write code using Qt libraries. In that sense, all will allow you to develop this graph program. C++ Qt and PySide are LGPL licence, PyQt is GPL, if you are intending to distribute your application that does make a difference.

      J 1 Reply Last reply
      1
      • JonBJ JonB

        @jash
        Just for the PyQt question. It doesn't terribly matter whether you use C++, PySide or PyQt, they all allow you to write code using Qt libraries. In that sense, all will allow you to develop this graph program. C++ Qt and PySide are LGPL licence, PyQt is GPL, if you are intending to distribute your application that does make a difference.

        J Offline
        J Offline
        jash
        wrote on last edited by jash
        #3

        @JonB so I would have to make my project open sourced if I use PyQt? That is fine, I plan to open source it anyway.

        Could you guide me to any resource which would help me learn what is required to make such an application?

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

          Hi and welcome to devnet,

          From your description, you might want to check the Graphics View Framework.

          In any case, please take the time to do some tutorials building simple stuff to get used to building GUI.

          You might also want to check the extensive collection of applications develop with/for KDE. You may have something there that might get you started more quickely.

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

          jeremy_kJ 1 Reply Last reply
          0
          • SGaistS SGaist

            Hi and welcome to devnet,

            From your description, you might want to check the Graphics View Framework.

            In any case, please take the time to do some tutorials building simple stuff to get used to building GUI.

            You might also want to check the extensive collection of applications develop with/for KDE. You may have something there that might get you started more quickely.

            jeremy_kJ Offline
            jeremy_kJ Offline
            jeremy_k
            wrote on last edited by
            #5

            @SGaist said in Need advice with new project (Should I use PyQT):

            From your description, you might want to check the Graphics View Framework.

            In any case, please take the time to do some tutorials building simple stuff to get used to building GUI.

            +1 for Graphics View, and +1 for the examples. The diagram scene example was my running start with Qt for a similar network visualization application.

            There are a few pieces of the C++ api that are missing in PyQt and PySide. I haven't encountered any that would dissuade me, but sometimes the C++ class documentation isn't sufficient. https://wiki.qt.io/Qt_for_Python_Missing_Bindings attempts to provide a current list.

            In general, object lifetime management is slightly more complicated than a typical python or C++ program.

            Asking a question about code? http://eel.is/iso-c++/testcase/

            J 1 Reply Last reply
            0
            • jeremy_kJ jeremy_k

              @SGaist said in Need advice with new project (Should I use PyQT):

              From your description, you might want to check the Graphics View Framework.

              In any case, please take the time to do some tutorials building simple stuff to get used to building GUI.

              +1 for Graphics View, and +1 for the examples. The diagram scene example was my running start with Qt for a similar network visualization application.

              There are a few pieces of the C++ api that are missing in PyQt and PySide. I haven't encountered any that would dissuade me, but sometimes the C++ class documentation isn't sufficient. https://wiki.qt.io/Qt_for_Python_Missing_Bindings attempts to provide a current list.

              In general, object lifetime management is slightly more complicated than a typical python or C++ program.

              J Offline
              J Offline
              jash
              wrote on last edited by
              #6

              @jeremy_k thanks, the diagram scene does look pretty similar to what I intend to do. Does it give the diagram information which I can use to know how the graph looks?
              I'm okay with learning and don't want to run away from it. Is there a python example I can look at?

              jeremy_kJ 1 Reply Last reply
              0
              • J jash

                @jeremy_k thanks, the diagram scene does look pretty similar to what I intend to do. Does it give the diagram information which I can use to know how the graph looks?
                I'm okay with learning and don't want to run away from it. Is there a python example I can look at?

                jeremy_kJ Offline
                jeremy_kJ Offline
                jeremy_k
                wrote on last edited by
                #7

                @jash said in Need advice with new project (Should I use PyQT):

                @jeremy_k thanks, the diagram scene does look pretty similar to what I intend to do. Does it give the diagram information which I can use to know how the graph looks?

                I'm not quite clear on the question. If you're referring to generating a data structure suitable for traversing the graph, I believe that I implemented my own by adding code to the existing functions. E.g. DiagramItem.__init__() from the example linked below provides an opportunity to track new objects in the diagram.

                I'm okay with learning and don't want to run away from it. Is there a python example I can look at?

                For PySide/Qt for Python
                https://doc.qt.io/qtforpython-6/examples/example_widgets_graphicsview_diagramscene.html

                I recall seeing PyQt ports of the examples, but don't have a link handy.

                Asking a question about code? http://eel.is/iso-c++/testcase/

                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