PyQT4 App
-
I think i fix this:
self.view.clicked.connect(on_item_clicked)
About the "Block" error - is there some Qt5 replacement ?
About the project you refer to - i've tried it and it can be runned, but it can't load more then one xbee modules, and i wish to establish a network with meny devices.
I tried to contact the creator, but he don't reply.Meanwhile i have new errors:
C:\xbee-gui-master\PyQT\Scripts\python.exe C:/xbee-gui-master/MainForm.py Traceback (most recent call last): File "C:/xbee-gui-master/MainForm.py", line 367, in <module> main() File "C:/xbee-gui-master/MainForm.py", line 362, in main bl = Block() File "C:/xbee-gui-master/MainForm.py", line 50, in __init__ self.all_tab() File "C:/xbee-gui-master/MainForm.py", line 63, in all_tab self.tab_control() File "C:/xbee-gui-master/MainForm.py", line 174, in tab_control model = QtWidgets.QStringListModel() AttributeError: module 'PyQt5.QtWidgets' has no attribute 'QStringListModel'
Any help, please ?
@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 moduleQStringListModel()
is in. -
@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 moduleQStringListModel()
is in. -
@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 moduleQStringListModel()
is in. -
@JonB
Since you saw that i'm now to this, can't you just say:''QStringListModel is a QtCore class, not QtWidgets'' ?
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.
-
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.
-
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 !!!
@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.
-
@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.
-
@JonB
Since you saw that i'm now to this, can't you just say:''QStringListModel is a QtCore class, not QtWidgets'' ?
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...
-
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...
-
As we suggested: read the class documentation