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;
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?
qgis-3 qgis-2 pyqt5 pyqt4
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.
add a comment |
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?
qgis-3 qgis-2 pyqt5 pyqt4
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.
add a comment |
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?
qgis-3 qgis-2 pyqt5 pyqt4
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
qgis-3 qgis-2 pyqt5 pyqt4
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.
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
With this documentation about PyQt5 signals, try this :
self.buttonBox.accepted.connect(Configuration.accept)
self.buttonBox.rejected.connect(Configuration.reject)
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
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
With this documentation about PyQt5 signals, try this :
self.buttonBox.accepted.connect(Configuration.accept)
self.buttonBox.rejected.connect(Configuration.reject)
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
add a comment |
With this documentation about PyQt5 signals, try this :
self.buttonBox.accepted.connect(Configuration.accept)
self.buttonBox.rejected.connect(Configuration.reject)
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
add a comment |
With this documentation about PyQt5 signals, try this :
self.buttonBox.accepted.connect(Configuration.accept)
self.buttonBox.rejected.connect(Configuration.reject)
With this documentation about PyQt5 signals, try this :
self.buttonBox.accepted.connect(Configuration.accept)
self.buttonBox.rejected.connect(Configuration.reject)
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
add a comment |
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
add a comment |
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
add a comment |
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
add a comment |
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
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
answered Apr 2 at 12:55
BlinxenBlinxen
15414
15414
add a comment |
add a comment |