⚠️ This repo is intended for developers. Artists and other non-developers can use the Unreal Qt plugin instead.
Unreal Qt
Qt (PySide6) support for Unreal Engine 5. It likely also works with Unreal Engine 4.
- Prevents widgets from disappearing instantly due to garbage collection.
- Automatically styles all Qt widgets using Xingyu Lei's unreal_stylesheet.
- Adds an optional dark title bar that better matches Unreal's UI.
- Parents widgets to Unreal's main window so they stay on top.
Install
- Copy the
unreal_qtfolder into a directory on Unreal's Python path, for example:- project:
D:\Unreal Projects\MyProject\Content\Python\Lib - editor:
D:\Program Files\Epic Games\UE_5.4\Engine\Binaries\ThirdParty\Python3\Win64\Lib\site-packages
- project:
- Run the setup code when Unreal starts, for example from a plugin or an
init_unreal.pyfile. See the docs.
Quickstart
This guide assumes that PySide6 is already installed.
- Add the
unreal_qtfolder to your Python path. See the Unreal docs. - Create
sample.pywith the snippet below, and add it to Unreal's Python path.
# 1. IMPORT MODULE
import unreal_qt
from PySide6.QtWidgets import QLabel, QWidget, QVBoxLayout
from PySide6.QtCore import Qt
# INIT MODULE - this step can run automatically on editor startup if added to init_unreal.py
unreal_qt.setup()
# 2. CREATE WIDGET
w = QWidget()
layout = QVBoxLayout()
w.setLayout(layout)
layout.addWidget(QLabel("Hello World!"))
# DELETE THE WIDGET WHEN IT IS CLOSED
w.setAttribute(Qt.WA_DeleteOnClose, True)
# 3. WRAP WIDGET
unreal_qt.wrap(w)
# 4. SHOW WIDGET
w.show()
- Import the script in Unreal's Python console to run it.
import sample
Dark title bar
Dark title bar
On Windows, the window title bar is white by default, and Qt can't change its color.
With unreal_qt, you can add a custom title bar.
- Default window bar and frame
- Custom bar, no frame (no resize support)
- Custom bar and frame, no title bar (supports resizing)
Community
- tech-artists.org thread: PySide and Unreal5
- TODO: Unreal forums thread
Similar projects
Metadata
Release files for unreal-qt 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| unreal_qt-0.1.0.tar.gz | 13.5 kB | Without provenance | Details for unreal_qt-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| unreal_qt-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for unreal_qt-0.1.0-py3-none-any.whl |
Total release size: 21.3 kB
Release files / unreal_qt-0.1.0.tar.gz
| Download URL | unreal_qt-0.1.0.tar.gz |
|---|---|
| Size | 13.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
97327ffd68a3cbb895d40c20356324aa4a8bcb0ef79718eb8b6d71e20723defe
|
|
BLAKE2b-256 checksum How to use checksums |
29355e393e677442a14a0979d64bcfcef606675c56aefbc5c80e48ac0b81fcbc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / unreal_qt-0.1.0-py3-none-any.whl
| Download URL | unreal_qt-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8984e5a33edbc471eeedb578359b1632a936a4a035b6bde6faeb764db2489fd3
|
|
BLAKE2b-256 checksum How to use checksums |
d8bfcd89636f23ef22759e878b0e2fa0606f6fe63d11f7ea5444669efdec4468
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Security for unreal-qt 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.