Using Qt Resources for icons in PySide6 or PyQt6

  Рет қаралды 3,656

Jason Codes Qt

Jason Codes Qt

Жыл бұрын

This video will show you how to properly use the Qt resource system for Icons in your PySide6 or PyQt application.

Пікірлер: 12
@nickmarshallvfx
@nickmarshallvfx Жыл бұрын
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!
@josys363
@josys363 Жыл бұрын
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!
@nickmarshallvfx
@nickmarshallvfx Жыл бұрын
@@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!!
@josys363
@josys363 Жыл бұрын
@@nickmarshallvfx www.pythonguis.com/faq/pyqt-vs-pyside/
@mexfin355
@mexfin355 Жыл бұрын
Thanks!!!! very well explained!!!!
@abdelhake2673
@abdelhake2673 6 ай бұрын
really great video truly helps a lot.
@kurdmanpar5706
@kurdmanpar5706 10 ай бұрын
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?
@josys363
@josys363 10 ай бұрын
There isn't one. PyQt6 removed the resource compiler. That's why I use PySide6.
@dreibrezen9978
@dreibrezen9978 Жыл бұрын
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?
@josys363
@josys363 Жыл бұрын
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.
@dreibrezen9978
@dreibrezen9978 Жыл бұрын
@@josys363 I tried again with a png icon and it worked perfectly 😊 Thank you!
@josys363
@josys363 Жыл бұрын
@@dreibrezen9978 Awesome!
A basic PySide6 and Qt Designer tutorial.
1:33:05
Jason Codes Qt
Рет қаралды 37 М.
Working with signals and slots in PySide or PyQt.
29:02
Jason Codes Qt
Рет қаралды 4,6 М.
Using Qt Designer files in PySide6 or PyQt6
27:28
Jason Codes Qt
Рет қаралды 10 М.
Nobody Cares About Your Coding Projects
11:02
Tariq10x
Рет қаралды 52 М.
Туториал по работе с PyQt5 и QtDesigner
31:43
IT-куб ОНТ
Рет қаралды 18 М.
Can I Run Youtube Entirely From My Terminal? (No Browser)
15:31
Don't use Tkinter!
39:53
Jason Codes Qt
Рет қаралды 10 М.
Everything Starts with a Note-taking System
21:23
Mischa van den Burg
Рет қаралды 225 М.
zoxide has forever improved the way I navigate in the terminal.
9:53
Dreams of Autonomy
Рет қаралды 444 М.
Потоп из какашек??? @zackdfilms - автор анимации.
0:31
Время знаний
Рет қаралды 4,8 МЛН
😆
0:20
Santi
Рет қаралды 15 МЛН
Самый странный заключённый😂 #фильм #кино
0:56