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. PyQT4 App
Forum Updated to NodeBB v4.3 + New Features

PyQT4 App

Scheduled Pinned Locked Moved Unsolved Qt for Python
42 Posts 4 Posters 9.9k 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.
  • JonBJ JonB

    @Mitko
    Now it's time for you to do the looking up. These questions are the same each time, and I don't see why I should look up the documentation for you.

    The error tells you why you can't write QtWidgets.QStringListModel(). So you need to find whatever module QStringListModel() is in.

    M Offline
    M Offline
    Mitko
    wrote on last edited by
    #33

    @JonB
    Since you saw that i'm now to this, can't you just say:

    ''QStringListModel is a QtCore class, not QtWidgets'' ?

    JonBJ jsulmJ 2 Replies Last reply
    0
    • JonBJ JonB

      @Mitko
      Now it's time for you to do the looking up. These questions are the same each time, and I don't see why I should look up the documentation for you.

      The error tells you why you can't write QtWidgets.QStringListModel(). So you need to find whatever module QStringListModel() is in.

      M Offline
      M Offline
      Mitko
      wrote on last edited by
      #34

      @JonB
      Any way... I run it.

      But when i try to make test, it can't obtain xbee modules, and when i hit the ''compound'' button, the app don't respond.

      Xbee-gui error.jpg

      1 Reply Last reply
      0
      • M Mitko

        @JonB
        Since you saw that i'm now to this, can't you just say:

        ''QStringListModel is a QtCore class, not QtWidgets'' ?

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

        @Mitko said in PyQT4 App:

        Since you saw that i'm now to this, can't you just say:
        ''QStringListModel is a QtCore class, not QtWidgets'' ?

        Since you saw how much help/time I've spent on this for you, given that I told you I am no Qt expert and it's just a question of you making the effort to actually just Google instead of me making that effort for your program, can't you just say:
        "Thanks for all the help so far, you're quite right I can type that into Google, no reason why should do that for me"
        ?

        So your attitude is the more I help the more I should help, to save you effort, else I'm not doing the job I owe you? Find someone else.

        M 1 Reply Last reply
        1
        • JonBJ JonB

          @Mitko said in PyQT4 App:

          Since you saw that i'm now to this, can't you just say:
          ''QStringListModel is a QtCore class, not QtWidgets'' ?

          Since you saw how much help/time I've spent on this for you, given that I told you I am no Qt expert and it's just a question of you making the effort to actually just Google instead of me making that effort for your program, can't you just say:
          "Thanks for all the help so far, you're quite right I can type that into Google, no reason why should do that for me"
          ?

          So your attitude is the more I help the more I should help, to save you effort, else I'm not doing the job I owe you? Find someone else.

          M Offline
          M Offline
          Mitko
          wrote on last edited by
          #36

          @JonB

          I already said:
          ''Hi, i'm really grateful for your help so far''.

          About the effort:
          I don't have problems with efforts, i just don't understand the QT, and just needed little help for better understanding the details.

          And again- Thank you all !!!

          SGaistS 1 Reply Last reply
          0
          • M Mitko

            @JonB

            I already said:
            ''Hi, i'm really grateful for your help so far''.

            About the effort:
            I don't have problems with efforts, i just don't understand the QT, and just needed little help for better understanding the details.

            And again- Thank you all !!!

            SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #37

            @Mitko You do realize that in in the case of the "has no attribute XXX" error, several people explained to you that some classes have moved from one module to another and that the information can be found on the class documentation. Hence the only thing you have to do with that error is go to the class documentation to get the module you need to import that class from.

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

            M 1 Reply Last reply
            1
            • SGaistS SGaist

              @Mitko You do realize that in in the case of the "has no attribute XXX" error, several people explained to you that some classes have moved from one module to another and that the information can be found on the class documentation. Hence the only thing you have to do with that error is go to the class documentation to get the module you need to import that class from.

              M Offline
              M Offline
              Mitko
              wrote on last edited by
              #38

              @SGaist
              Like i said, i'm not familiar enough with Qt, in order to understand this details.

              JonBJ 1 Reply Last reply
              0
              • M Mitko

                @SGaist
                Like i said, i'm not familiar enough with Qt, in order to understand this details.

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

                @Mitko
                For the record, these are purely Python errors. You would get the same errors in the same circumstances in Python with any module, nothing special about Qt. So this is an issue of Python knowledge/understanding.

                1 Reply Last reply
                0
                • M Mitko

                  @JonB
                  Since you saw that i'm now to this, can't you just say:

                  ''QStringListModel is a QtCore class, not QtWidgets'' ?

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

                  @Mitko said in PyQT4 App:

                  Since you saw that i'm now to this, can't you just say:

                  And can't you find it out by yourself?
                  You already asked these kind of questions and were told how to find this information.
                  Why should others do the research for you all the time?

                  The fact that you are a beginner doesn't mean that you should not learn how to find needed information after you were told several times how to do so...

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

                  M 1 Reply Last reply
                  1
                  • jsulmJ jsulm

                    @Mitko said in PyQT4 App:

                    Since you saw that i'm now to this, can't you just say:

                    And can't you find it out by yourself?
                    You already asked these kind of questions and were told how to find this information.
                    Why should others do the research for you all the time?

                    The fact that you are a beginner doesn't mean that you should not learn how to find needed information after you were told several times how to do so...

                    M Offline
                    M Offline
                    Mitko
                    wrote on last edited by
                    #41

                    @jsulm

                    As I said:
                    I still don't understand enough the details.

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

                      As we suggested: read the class documentation

                      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