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. VPN connect app. PyQt5. how to display output in second display?
Forum Updated to NodeBB v4.3 + New Features

VPN connect app. PyQt5. how to display output in second display?

Scheduled Pinned Locked Moved Solved Qt for Python
28 Posts 5 Posters 4.7k 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.
  • Axel SpoerlA Axel Spoerl

    I would definitively use a QTreeView and implement a model to view the XML tree.
    You can have a look a the document viewer example, to see how this can be implemented. It's in C++ and has a JSON viewer, but the principle is the same.

    A Offline
    A Offline
    Al3x
    wrote on last edited by
    #21

    @Axel-Spoerl
    So would you care to share how you would do this?
    Im trying to do this in Python and XML.
    You think me being new to QT and python that a C++ example is going to help me alot?

    1 Reply Last reply
    0
    • Axel SpoerlA Offline
      Axel SpoerlA Offline
      Axel Spoerl
      Moderators
      wrote on last edited by
      #22

      There is no example in our library, that demonstrates how to implement a QAbstractItemModel subclass in Python and I usually don't work with Python. This forum mainly offers support, when someone is stuck, something is unclear or even wrong in our library. It happens once in a while, that somebody asks for a concrete solution to a specific problem like yours - and gets it.
      But that's not a guarantee, not something you can expect. Everybody around here contributes to the forum in their free time, me included - even though I am employed by Qt.

      That said, implementing such a model is not a trivial task. Implementing it for XML even less. That's why I suggested you to go with JSON. The document viewer example I mentioned does exactly this. If you know a bit of Python, you will probably understand the mechanisms by reading the C++ code. Then there is ChatGPT and other tools, which can help you accomplish that.

      It doesn't help that you insult me in private messages of being a joker and an old man.
      It's forgiven, it probably happened in a wave of expectations to receive a ready made solution, and the frustration of not getting it.
      Please re-consider this attitude.

      Software Engineer
      The Qt Company, Oslo

      1 Reply Last reply
      1
      • A Offline
        A Offline
        Al3x
        wrote on last edited by Al3x
        #23

        Yes, precisely, i am stuck,and hence the post (again).
        Hence the last post that i wish to use XML.
        ChatGPT and other tools. ha Youre a real Joker! arent you? ......circus coming!

        If you feel insulted by my general comment(PM), thats your problem, sorry but, if you write to me in a chaotic matter, dont expect a pleasant response. You should know better as a Moderator! Take it to ur psychologist or mom/dad

        and it certainly does not append to some wave of expectation to do the code for me!
        you have given no kind of direction other than misc links.

        If you dont have a solution to my post, dont post at all!

        jsulmJ 1 Reply Last reply
        0
        • A Al3x

          Yes, precisely, i am stuck,and hence the post (again).
          Hence the last post that i wish to use XML.
          ChatGPT and other tools. ha Youre a real Joker! arent you? ......circus coming!

          If you feel insulted by my general comment(PM), thats your problem, sorry but, if you write to me in a chaotic matter, dont expect a pleasant response. You should know better as a Moderator! Take it to ur psychologist or mom/dad

          and it certainly does not append to some wave of expectation to do the code for me!
          you have given no kind of direction other than misc links.

          If you dont have a solution to my post, dont post at all!

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

          @Al3x Please stop writing rude posts and read and follow https://forum.qt.io/topic/113070/qt-code-of-conduct

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

          1 Reply Last reply
          3
          • A Offline
            A Offline
            Al3x
            wrote on last edited by
            #25

            Thats great the Code of Conduct! im all for it! But i dislike @Axel-Spoerl! his energy is very negative!
            When you begin your first post in an arrogant matter and give a vaugue answer and no explanation . And then get mad at my words and close the topic saying im waisting time! ---Get outta here!! And Then hes still writing to this topic(even tho im waisting his time! according to him!) .
            ?

            1 Reply Last reply
            0
            • A Offline
              A Offline
              Al3x
              wrote on last edited by
              #26

              and then... be a donkey like he is and tell me to use ChatGPT. Because hes an ignorant fool! and because the man can not answer his own answers.. its deplorable! WaisteMan! its the real definition of a Real WaisteMan!
              I came to congretate in peace, but its been turned around thanks to this grow man maloquee . So much for grown men? Looks like a man in a skirt giving orders of no succession...
              "Software Enginner" yea why not!

              Rude comes with the turff.
              Dont blame me for someone else's stupidity!

              Christian EhrlicherC jsulmJ 2 Replies Last reply
              0
              • A Al3x

                and then... be a donkey like he is and tell me to use ChatGPT. Because hes an ignorant fool! and because the man can not answer his own answers.. its deplorable! WaisteMan! its the real definition of a Real WaisteMan!
                I came to congretate in peace, but its been turned around thanks to this grow man maloquee . So much for grown men? Looks like a man in a skirt giving orders of no succession...
                "Software Enginner" yea why not!

                Rude comes with the turff.
                Dont blame me for someone else's stupidity!

                Christian EhrlicherC Offline
                Christian EhrlicherC Offline
                Christian Ehrlicher
                Lifetime Qt Champion
                wrote on last edited by
                #27

                @Al3x Please stop insulting other people and follow the Forum guidlines and Code of Conduct. or search another forum where insults on other people are tolerated - here it's for sure not.

                Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                Visit the Qt Academy at https://academy.qt.io/catalog

                1 Reply Last reply
                4
                • A Al3x

                  and then... be a donkey like he is and tell me to use ChatGPT. Because hes an ignorant fool! and because the man can not answer his own answers.. its deplorable! WaisteMan! its the real definition of a Real WaisteMan!
                  I came to congretate in peace, but its been turned around thanks to this grow man maloquee . So much for grown men? Looks like a man in a skirt giving orders of no succession...
                  "Software Enginner" yea why not!

                  Rude comes with the turff.
                  Dont blame me for someone else's stupidity!

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

                  @Al3x said in VPN connect app. PyQt5. how to display output in second display?:

                  Because hes an ignorant fool!

                  I already told you to stop to behave this way.
                  You will be banned if you continue to insult other people.
                  Last warning...

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

                  1 Reply Last reply
                  2

                  • Login

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