PySide6 Tutorial | Qt 6 For Python | Loading UI Files Created with Qt Designer

preview_player
Показать описание
In this tutorial, we will create a basic UI layout using the included Qt Designer that comes installed with PySide6. We will then compile the file into Python code and load it into a new PySide6 project. You will also be able to use UI files generated using Qt Creator.

Рекомендации по теме
Комментарии
Автор

Great tutorial. Thanks for introducing PySide6 in YT

gokulrajaking
Автор

is there no continuation to this great tutorial series :(

irfanhazza
Автор

Good video! Would be great to have another one about dynamically loading the *.ui file in Python.
I especially struggle there to get sufficient typing support from the editors.

enstein
Автор

man this is underrated, every video i clicked on to explain pyslide6 immediately defaulted to qt and qt quick. Like i clicked for pyslide, where is it!

mrmartinwatson
Автор

Thank you for posting these tutorials! Amazing job and well explained. Will you be posting on the proper way to add logic to once you've made the connection to the UI files?

AlexanderPerez-oegu
Автор

this is a nice video. But keep in mind that you are not using the uic.load() function within python. You are creating a .py output. If you really want to "load ui files created in Qt designer" then do this:
Class my_program(QMainWindow)
def __init__(self):
QMainWindow.__init__(self)
my_ui='my_ui.ui'
self.setWindowIcon(my_logo)
uic.loadUi(my_ui, self)

This save the step, of converting the ui to py and that way if you change anything in the .ui you dont lose your work!

alexandarjelenic
Автор

Traceback (most recent call last):
File "C:/Users/Bryan/PycharmProjects/FirstProject/main.py", line 3, in <module>
from ui_mainwindow import Ui_MainWindow
ValueError: source code string cannot contain null bytes

#The file converted successfully and stored inside/next to main.py but I'm receiving this error?

Bee_Ry
Автор

Hi, very appreciate about the video but when I running the code in your vedio I got error "from ui_mainwindow2 import Ui_MainWindow
ValueError: source code string cannot contain null bytes", may I ask how to solve that. Thank you.

girlsandfunny
Автор

Thanks for sharing the tutorial, was really helpful, could you make a tutorial on how the qanimationproprety works, thanks again.

codepower
Автор

It does not work on my PC. Using Python 3.9, PySide6 and Qt Designer 5.11.1. I have this error.

File "e:\PYTHON\Qt_PYTHON\main.py", line 3, in <module>
from ui_mainwindow import Ui_MainWindow
ValueError: source code string cannot contain null bytes

cyrilcalmes
Автор

Fortnite fan eh? Nice video tbh! Keep it up.

UnbiasedYT
Автор

Hey Thanks for Tutorial
Getting Error while Converting the Ui file in python file
Error is pyside6-uic : The term 'pyside6-uic' is not recognized as the name of a cmdlet, function, script file, or operable
program.
Plz Help

dnrbs
join shbcf.ru