Maybe the loading finished signal is triggered before the SVG is fully rendered? If nothing else helps and it doesn't need to be fast, I'd just wait another second or so before triggering the print (with a QTimer)
Well, the error tells you what's wrong, no? You're doing thread.signals.signal_QStandardItemModel(self.treeAction) which means you're trying to call a signal like a function
F
I didn't really look at the rest of the code in detail, but perhaps you just forgot an .emit there?
Welcome dhex 🎉 🎊
Verify you are not a bot solving the captcha!
Remember to check the documentation page https://doc.qt.io/qtforpython/ and the wiki https://pyside.org if you have some questions.
Hi everyone!
shiboken6 generates <module>_python.h(pyquotient_python.h) that includes itself in part 'Module includes':
// Module Includes
#include <pyside6_qtcore_python.h>
#include <pyside6_qtnetwork_python.h>
#include <pyquotient_python.h>
What could be the reason of such behavior? Incorrect typesystem load or something like that?
No, there is no such module.
It seems so that I found the reason. I have following structure of typesystem files:
- jobs/
— typestem_job1.xml
— typesystem_job2.xml
- typesystem_index.xml
Both jobs are loaded in typesystem_index.xml with generate="yes". And if I load typesystem_job2.xml in typesystem_job1.xml with generate="no", I get that error.
Both jobs typesystem definitions have the same structure:
<typesystem package="PyQuotient">
<load-typesystem name="typesystem_core.xml" generate="no" />
<namespace-type name="Quotient">
<value-type name="IdentityServerInformation" />
</namespace-type>
</typesystem>
Difference is only in name of class.
In typesystem_index.xml I just load both jobs for generation:
<typesystem package="PyQuotient">
<load-typesystem name="jobs/job1.xml" />
<load-typesystem name="jobs/job2.xml" />
</typesystem>
Is it a bug or should I somehow restructure definitions?
Here is a sample qthread implementation I wrote for you.
- Created a class extending QThread from Pyside
- Override run method
- Did a http get call with requests from run method
- Created a signal which will be emitted from run when request operation is complete
- Connected to the custom signal to print the data
Welcome diyu 🎉 🎊
Verify you are not a bot solving the captcha!
Remember to check the documentation page https://doc.qt.io/qtforpython/ and the wiki https://pyside.org if you have some questions.
Welcome diyu 🎉 🎊
Verify you are not a bot solving the captcha!
Remember to check the documentation page https://doc.qt.io/qtforpython/ and the wiki https://pyside.org if you have some questions.