Giter Site home page Giter Site logo

unreal_qt's Introduction

unreal_qt

QT PySide2 support for unreal engine 5 (likely works in unreal 4)

  • prevent widget from instantly dissapearing due to garbage collection
  • automatically style all Qt widgets using Xingyu Lei's unreal_stylesheet
  • dark window bar for a better visual match with Unreal
  • parent widget to Unreal's main window to stay on top

Quickstart

  1. Add the unreal_qt folder in your python path. See unreal docs
  2. create following sample script and add to unreal python path.
# 1. SETUP - this step can automatically run on editor startup when added to your init_unreal.py
import unreal_qt
unreal_qt.setup()  

# 2. CREATE WIDGET - create your qt widget
# every widget you make after setup won't block the editor & have unreal styling
from PySide2.QtWidgets import QLabel, QWidget, QVBoxLayout
w = QWidget()
layout = QVBoxLayout()
w.setLayout(layout)
layout.addWidget(QLabel("Hello World!"))

# 3. WRAP WIDGET - (optional) manage garbage collection, add darkbar, stay on top
unreal_qt.wrap(w)

# 4. SHOW WIDGET - if using stay on top this needs to run after the wrap stage
w.show()
  1. import script in unreal with the Python terminal to run it.

image

Dark title bar

The windows bar is by default white on Windows, and QT can't change the bar color.

With unreal_qt you can add a custom bar.

  • default window bar & frame

image

  • custom bar, no frame (no resize support!)

image

  • custom bar, frame, no title bar (supports resize)

image

Engine resource browser

Browse the unreal instal folder for default resources (icons, shapes, fonts) which can be used in your qt-tools

  • filter by file type
  • search by name

image

unreal_qt's People

Contributors

hannesdelbeke avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.