27 July 2021
28 July 2021
Ссылка
click to show
click to show
Welcome Dmitry 🎉 🎊
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 Dmitry 🎉 🎊
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 @anit1231 🎉 🎊
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.
DmitryHi everyone. Help with the QTimer. Why is only the last parameter from the list passed to the lambda function? Or how to properly run the function with a delay and pass parameters to it?
Ссылка
click to show
click to show
This isn't specific to QTimers or even Qt, see https://docs.python-guide.org/writing/gotchas/#late-binding-closures - I like using functools.partial for things like this
Welcome William E. Young 🎉 🎊
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.
FreyaThis isn't specific to QTimers or even Qt, see https://docs.python-guide.org/writing/gotchas/#late-binding-closures - I like using functools.partial for things like this
Neat! I didn't know about functools.partial. functools.partialmethod would also be useful for slots too I think.
https://docs.python.org/3/library/functools.html#functools.partial
29 July 2021
Welcome @lyrics254 🎉 🎊
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.
Ссылка
click to show
click to show
Welcome @olivenstef 🎉 🎊
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.
30 July 2021
Welcome @lilberick 🎉 🎊
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 stas 🎉 🎊
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.
Good afternoon, I have a specialized question. Is there a module in PySide2 (not PySide6) that allows you to run methods from exe and libraries, both compiled under Linux and under Windows. That is, something like QLibraries / cdll that cross-platform allows you to access any exe so dll by offset and work with it.
СтасGood afternoon, I have a specialized question. Is there a module in PySide2 (not PySide6) that allows you to run methods from exe and libraries, both compiled under Linux and under Windows. That is, something like QLibraries / cdll that cross-platform allows you to access any exe so dll by offset an
No. I don't believe so.
This is what Shiboken is used for - providing the python wrappers for C/C++ source code.
Though that is at the source level, not binary level.
СтасGood afternoon, I have a specialized question. Is there a module in PySide2 (not PySide6) that allows you to run methods from exe and libraries, both compiled under Linux and under Windows. That is, something like QLibraries / cdll that cross-platform allows you to access any exe so dll by offset an
I think you probably could load a library with QLibrary (I think there are python wrappers for that in PySide2), but once you have it loaded, you have no way to interact with the loaded library without bindings created.
If somehow you could make a call that constructs an object, if it's of a class that Qt defines and PySide2 has provided wrappers for, you could instruct Shiboken to provide you the pointer wrapped as the PySide2 type, and then use it in Python.
That's pretty difficult though, and it would be much better to write the Shiboken wrappers for the library sources in question.
31 July 2021
Ссылка
click to show
click to show
Hey all, hope you are doing well.. Can anyone help me with how to stop a thread. I have tried to use signals to send a stop signal but it fails to stop it .Here is a small snippet of what I have tried if it helps : http://pastebin.com/QkmvuELB ( My code revolves around getting some data from sensors to my pi so run only has serial.readline method)
id 371921595Hey all, hope you are doing well.. Can anyone help me with how to stop a thread. I have tried to use signals to send a stop signal but it fails to stop it .Here is a small snippet of what I have tried if it helps : http://pastebin.com/QkmvuELB ( My code revolves around getting some data from sensors
The example looks okay on first glance, can you show a complete example which is runnable and shows the issue?