QGIS2 to QGIS3 plugin migration issue AttributeError: type object 'QObject' has no attribute 'connect' [duplicate]Converting QGIS 2 plugin to QGIS 3?QGIS 2 to 3 (QObject.connect)Attribute Error: 'NoneType' object has no attribute 'name'Attribute Error: “List” object has no attribute getFeaturesAttributeError: 'QgsVectorLayer' object has no attribute 'pendingFields'Getting QGIS 2.x python code to work in QGIS 3.x? object has no attribute 'legendInterface' problemAttributeError: 'QgsVectorLayer' object has no attribute 'fieldNameIndex'QGIS Processing Script Stops Working After First RunRule for labeling ways not being part of OSM relation in QGIS

Does detail obscure or enhance action?

Horror movie about a virus at the prom; beginning and end are stylized as a cartoon

Important Resources for Dark Age Civilizations?

Approximately how much travel time was saved by the opening of the Suez Canal in 1869?

Could an aircraft fly or hover using only jets of compressed air?

Why can't we play rap on piano?

Arrow those variables!

What's the output of a record needle playing an out-of-speed record

What typically incentivizes a professor to change jobs to a lower ranking university?

LWC SFDX source push error TypeError: LWC1009: decl.moveTo is not a function

How is it possible to have an ability score that is less than 3?

Can I make popcorn with any corn?

How can I prevent hyper evolved versions of regular creatures from wiping out their cousins?

What does the "remote control" for a QF-4 look like?

Paid for article while in US on F-1 visa?

What's that red-plus icon near a text?

Modeling an IP Address

Why doesn't H₄O²⁺ exist?

High voltage LED indicator 40-1000 VDC without additional power supply

Why "Having chlorophyll without photosynthesis is actually very dangerous" and "like living with a bomb"?

Cross compiling for RPi - error while loading shared libraries

Replacing matching entries in one column of a file by another column from a different file

NMaximize is not converging to a solution

infared filters v nd



QGIS2 to QGIS3 plugin migration issue AttributeError: type object 'QObject' has no attribute 'connect' [duplicate]


Converting QGIS 2 plugin to QGIS 3?QGIS 2 to 3 (QObject.connect)Attribute Error: 'NoneType' object has no attribute 'name'Attribute Error: “List” object has no attribute getFeaturesAttributeError: 'QgsVectorLayer' object has no attribute 'pendingFields'Getting QGIS 2.x python code to work in QGIS 3.x? object has no attribute 'legendInterface' problemAttributeError: 'QgsVectorLayer' object has no attribute 'fieldNameIndex'QGIS Processing Script Stops Working After First RunRule for labeling ways not being part of OSM relation in QGIS






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1
















This question already has an answer here:



  • Converting QGIS 2 plugin to QGIS 3? [closed]

    2 answers



I am trying to migrate a plugin. I have these two lines:



QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Configuration.accept)
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Configuration.reject)


I thought after looking into some examples that in PyQt5 the lines should read:



self.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Configuration.accept)
self.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Configuration.reject)


but it just throws the error



AttributeError: 'ConfigurationDialog' object has no attribute 'QObject'


This is confusing because ConfigurationDialog is not found in this py script. ConfigurationDialog is a class in another script but nowhere in it does it make reference to QObject. Can I get some clarification on what where I am going wrong?










share|improve this question















marked as duplicate by Andre Silva, HDunn, Hornbydd, whyzar, LaughU yesterday


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
























    1
















    This question already has an answer here:



    • Converting QGIS 2 plugin to QGIS 3? [closed]

      2 answers



    I am trying to migrate a plugin. I have these two lines:



    QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Configuration.accept)
    QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Configuration.reject)


    I thought after looking into some examples that in PyQt5 the lines should read:



    self.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Configuration.accept)
    self.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Configuration.reject)


    but it just throws the error



    AttributeError: 'ConfigurationDialog' object has no attribute 'QObject'


    This is confusing because ConfigurationDialog is not found in this py script. ConfigurationDialog is a class in another script but nowhere in it does it make reference to QObject. Can I get some clarification on what where I am going wrong?










    share|improve this question















    marked as duplicate by Andre Silva, HDunn, Hornbydd, whyzar, LaughU yesterday


    This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.




















      1












      1








      1









      This question already has an answer here:



      • Converting QGIS 2 plugin to QGIS 3? [closed]

        2 answers



      I am trying to migrate a plugin. I have these two lines:



      QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Configuration.accept)
      QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Configuration.reject)


      I thought after looking into some examples that in PyQt5 the lines should read:



      self.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Configuration.accept)
      self.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Configuration.reject)


      but it just throws the error



      AttributeError: 'ConfigurationDialog' object has no attribute 'QObject'


      This is confusing because ConfigurationDialog is not found in this py script. ConfigurationDialog is a class in another script but nowhere in it does it make reference to QObject. Can I get some clarification on what where I am going wrong?










      share|improve this question

















      This question already has an answer here:



      • Converting QGIS 2 plugin to QGIS 3? [closed]

        2 answers



      I am trying to migrate a plugin. I have these two lines:



      QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Configuration.accept)
      QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Configuration.reject)


      I thought after looking into some examples that in PyQt5 the lines should read:



      self.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Configuration.accept)
      self.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Configuration.reject)


      but it just throws the error



      AttributeError: 'ConfigurationDialog' object has no attribute 'QObject'


      This is confusing because ConfigurationDialog is not found in this py script. ConfigurationDialog is a class in another script but nowhere in it does it make reference to QObject. Can I get some clarification on what where I am going wrong?





      This question already has an answer here:



      • Converting QGIS 2 plugin to QGIS 3? [closed]

        2 answers







      qgis-3 qgis-2 pyqt5 pyqt4






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 2 at 13:12







      Tyler Veinot

















      asked Apr 2 at 12:21









      Tyler VeinotTyler Veinot

      432212




      432212




      marked as duplicate by Andre Silva, HDunn, Hornbydd, whyzar, LaughU yesterday


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









      marked as duplicate by Andre Silva, HDunn, Hornbydd, whyzar, LaughU yesterday


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






















          2 Answers
          2






          active

          oldest

          votes


















          2














          With this documentation about PyQt5 signals, try this :



          self.buttonBox.accepted.connect(Configuration.accept)
          self.buttonBox.rejected.connect(Configuration.reject)





          share|improve this answer























          • Thank you; I really need to do a python3 and pyQt5 course I would never have gotten that.

            – Tyler Veinot
            Apr 2 at 13:19


















          0














          I can't really tell you why the error message occurs, because I can't see your full code. But to solve your problem, try creating the Signal/Slot connection like this:



          self.buttonBox.accepted.connect(Configuration.accept)
          self.buttonBox.rejected.connect(Configuration.reject)


          I hope this helps






          share|improve this answer





























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            With this documentation about PyQt5 signals, try this :



            self.buttonBox.accepted.connect(Configuration.accept)
            self.buttonBox.rejected.connect(Configuration.reject)





            share|improve this answer























            • Thank you; I really need to do a python3 and pyQt5 course I would never have gotten that.

              – Tyler Veinot
              Apr 2 at 13:19















            2














            With this documentation about PyQt5 signals, try this :



            self.buttonBox.accepted.connect(Configuration.accept)
            self.buttonBox.rejected.connect(Configuration.reject)





            share|improve this answer























            • Thank you; I really need to do a python3 and pyQt5 course I would never have gotten that.

              – Tyler Veinot
              Apr 2 at 13:19













            2












            2








            2







            With this documentation about PyQt5 signals, try this :



            self.buttonBox.accepted.connect(Configuration.accept)
            self.buttonBox.rejected.connect(Configuration.reject)





            share|improve this answer













            With this documentation about PyQt5 signals, try this :



            self.buttonBox.accepted.connect(Configuration.accept)
            self.buttonBox.rejected.connect(Configuration.reject)






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Apr 2 at 12:56









            J. MonticoloJ. Monticolo

            1,397217




            1,397217












            • Thank you; I really need to do a python3 and pyQt5 course I would never have gotten that.

              – Tyler Veinot
              Apr 2 at 13:19

















            • Thank you; I really need to do a python3 and pyQt5 course I would never have gotten that.

              – Tyler Veinot
              Apr 2 at 13:19
















            Thank you; I really need to do a python3 and pyQt5 course I would never have gotten that.

            – Tyler Veinot
            Apr 2 at 13:19





            Thank you; I really need to do a python3 and pyQt5 course I would never have gotten that.

            – Tyler Veinot
            Apr 2 at 13:19













            0














            I can't really tell you why the error message occurs, because I can't see your full code. But to solve your problem, try creating the Signal/Slot connection like this:



            self.buttonBox.accepted.connect(Configuration.accept)
            self.buttonBox.rejected.connect(Configuration.reject)


            I hope this helps






            share|improve this answer



























              0














              I can't really tell you why the error message occurs, because I can't see your full code. But to solve your problem, try creating the Signal/Slot connection like this:



              self.buttonBox.accepted.connect(Configuration.accept)
              self.buttonBox.rejected.connect(Configuration.reject)


              I hope this helps






              share|improve this answer

























                0












                0








                0







                I can't really tell you why the error message occurs, because I can't see your full code. But to solve your problem, try creating the Signal/Slot connection like this:



                self.buttonBox.accepted.connect(Configuration.accept)
                self.buttonBox.rejected.connect(Configuration.reject)


                I hope this helps






                share|improve this answer













                I can't really tell you why the error message occurs, because I can't see your full code. But to solve your problem, try creating the Signal/Slot connection like this:



                self.buttonBox.accepted.connect(Configuration.accept)
                self.buttonBox.rejected.connect(Configuration.reject)


                I hope this helps







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 2 at 12:55









                BlinxenBlinxen

                15414




                15414













                    Popular posts from this blog

                    រឿង រ៉ូមេអូ និង ហ្ស៊ុយលីយេ សង្ខេបរឿង តួអង្គ បញ្ជីណែនាំ

                    QGIS export composer to PDF scale the map [closed] Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Print Composer QGIS 2.6, how to export image?QGIS 2.8.1 print composer won't export all OpenCycleMap base layer tilesSave Print/Map QGIS composer view as PNG/PDF using Python (without changing anything in visible layout)?Export QGIS Print Composer PDF with searchable text labelsQGIS Print Composer does not change from landscape to portrait orientation?How can I avoid map size and scale changes in print composer?Fuzzy PDF export in QGIS running on macSierra OSExport the legend into its 100% size using Print ComposerScale-dependent rendering in QGIS PDF output

                    PDF-ში გადმოწერა სანავიგაციო მენიუproject page