This channel is absolute gold. I've learned so much from you already. I've seen this info elsewhere but never as succinct as this, and your method of converting the UI to Python and reading it as a module really helped me understand how I could dynamically load the UI into a main script (much better way of working) without having to distribute the QtDesigner .ui file which seemed strange to me. I'm newer to OOP and that was a lightbulb moment. I'd love to hear any thoughts you have on distributing Python applications where you have proprietary code that you need to obfuscate, if you have any wisdom to impart on that topic. Thanks so much for creating these videos!
I'm glad you are enjoying the content! Now if you want to obfuscate your code, I'm not aware of a perfectly fool proof method. Are you already packing your code using something like PyInstaller? If not you would want to look at that because it will create an executable from your code. But, I do believe anyone with a little know how will still be able to find the code. I have packaged Python apps using it. Also if you are going to package an application without any access to source code, you may be violating the LGPL license of Qt. Especially if this is an app you are going to make commercial. I would recommend you do your research. Thanks!
@@josys363 Thanks for the quick reply! My research so far tells me that I'll have to pay for a commercial license for distribution, but that's acceptable to me if/when the time comes. I'll look into pyinstaller, currently I'm in a bind because I'm writing a GUI based plugin for another software so it's difficult to figure out how to package that in a way that obfuscates the code to make a commercial product while still working with the requirements of the initial applications SDK. More research to do for me as you said, but really appreciating your thorough approach to these tutorials, they are great, please keep going!!
Thank you very much for your calm explanations, super easy to follow :) So I did all this but the icons are still not shown in my application. I was wondering if the icon format could be the issue (it says Microsoft Edge HTML Document (.svg)), but shouldn't it work with any kind of graphic format? Do you know of another common source of error regarding this?
My initial thought would be that the format may be incorrect. I have several .svg icons in applications so the .svg format isn't an issue, but maybe the ones you have are incorrect. You may want to look for some other icons and try using those. Also since there can be a lot involved with setting up Icons using resource files, I would go back and double check that you are performing the steps correctly. But, again, without seeing what you are working with, the format may be incorrect.
This channel is absolute gold. I've learned so much from you already. I've seen this info elsewhere but never as succinct as this, and your method of converting the UI to Python and reading it as a module really helped me understand how I could dynamically load the UI into a main script (much better way of working) without having to distribute the QtDesigner .ui file which seemed strange to me. I'm newer to OOP and that was a lightbulb moment.
I'd love to hear any thoughts you have on distributing Python applications where you have proprietary code that you need to obfuscate, if you have any wisdom to impart on that topic. Thanks so much for creating these videos!
I'm glad you are enjoying the content! Now if you want to obfuscate your code, I'm not aware of a perfectly fool proof method. Are you already packing your code using something like PyInstaller? If not you would want to look at that because it will create an executable from your code. But, I do believe anyone with a little know how will still be able to find the code. I have packaged Python apps using it. Also if you are going to package an application without any access to source code, you may be violating the LGPL license of Qt. Especially if this is an app you are going to make commercial. I would recommend you do your research. Thanks!
@@josys363 Thanks for the quick reply! My research so far tells me that I'll have to pay for a commercial license for distribution, but that's acceptable to me if/when the time comes. I'll look into pyinstaller, currently I'm in a bind because I'm writing a GUI based plugin for another software so it's difficult to figure out how to package that in a way that obfuscates the code to make a commercial product while still working with the requirements of the initial applications SDK. More research to do for me as you said, but really appreciating your thorough approach to these tutorials, they are great, please keep going!!
@@nickmarshallvfx www.pythonguis.com/faq/pyqt-vs-pyside/
really great video truly helps a lot.
Thanks!!!! very well explained!!!!
Also, thank you for your very good educational video. I wanted you to explain what tool and how to convert qrc file to python for pyqt6 library?
There isn't one. PyQt6 removed the resource compiler. That's why I use PySide6.
Thank you very much for your calm explanations, super easy to follow :) So I did all this but the icons are still not shown in my application. I was wondering if the icon format could be the issue (it says Microsoft Edge HTML Document (.svg)), but shouldn't it work with any kind of graphic format?
Do you know of another common source of error regarding this?
My initial thought would be that the format may be incorrect. I have several .svg icons in applications so the .svg format isn't an issue, but maybe the ones you have are incorrect. You may want to look for some other icons and try using those. Also since there can be a lot involved with setting up Icons using resource files, I would go back and double check that you are performing the steps correctly. But, again, without seeing what you are working with, the format may be incorrect.
@@josys363 I tried again with a png icon and it worked perfectly 😊
Thank you!
@@dreibrezen9978 Awesome!