.UI

UI File

Qt Designer User Interface File
Ask a question
QUICK ANSWER

A UI file is a Qt Designer user interface file - an XML description of a GUI form or dialog for a Qt Widgets application. Open it with Qt Creator (the official Qt IDE) for visual editing, or with any text editor to inspect the XML. The file is never deployed at runtime; the Qt uic compiler converts it to C++ at build time.

Developer: The Qt Company (originally Trolltech; previously Nokia; now The Qt Company) Category: Developer Files Open standard MIME: application/x-designer
OPENS ON Windows macOS Linux
Related: .DO · .MD · .HEX · .XSD

On this page

19k+ extensions indexed
Last reviewed Jun 14, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the UI file format?

A .ui file is an XML-based form layout description created and edited by Qt Designer, the visual GUI editor bundled with Qt Creator. It defines the widget hierarchy, properties, signal/slot connections, and resource references that make up a Qt Widgets dialog or window - but is a design-time artifact only and is never deployed at runtime.

The file begins with a standard XML declaration followed by a <ui version="4.0"> root element. Inside, a <widget> tree mirrors the widget hierarchy, each node carrying <property> elements for geometry, text, fonts, and other attributes. Signal/slot connections are listed in a <connections> block; custom widget registrations appear under <customwidgets>; embedded resource aliases sit in <resources>.

At build time, Qt's uic (User Interface Compiler) reads the .ui file and generates a C++ header - for example, ui_mainwindow.h - that instantiates and configures all widgets. This generated header is #included by the corresponding .cpp implementation file. The XML schema has been stable since Qt 4 (2005) and is fully supported across Qt 5 and Qt 6; all three versions retain the version="4.0" attribute string for backward compatibility.

For modern .qml-based Qt Quick interfaces, .ui files are not used. They remain the standard for traditional Qt Widgets applications on Windows, Linux, macOS, Android, iOS, and embedded targets. Qt Designer (also available as a standalone tool) and any plain-text XML editor can open .ui files.

Security & safety

RISK: LOW

.ui files are plain XML and pose no execution risk when opened in a text editor. In a build environment, uic-generated code is compiled into the application - but the .ui file itself contains no executable code; all logic is in the .cpp companion.

Format details

in a nutshell
FULL NAMEQt Designer User Interface Fileaka Qt UI file, Qt Designer form file
DEVELOPERThe Qt Company (originally Trolltech; previously Nokia; now The Qt Company)since ~1999 (Qt Designer introduced with Qt 2.x)
MIME TYPEapplication/x-designer
TYPEXML-based GUI layout description (text)
STANDARDOpen · royalty-free
This extension is also used by…
  • FLUID (FLTK User Interface Designer) file - FLTK's FLUID tool uses .fl files primarily but some older projects or variants may use .ui for FLTK GUI descriptions.
  • Generic UI description / other frameworks - Some other GUI toolkits (wxFormBuilder, Glade for GTK) may use .ui extension; Glade XML files for GTK are also .ui (GtkBuilder format).

Programs that open UI files

Windows3 apps
Qt Creator Open-source Open .ui file in Qt Creator - double-click in the project tree to open in the embedded Qt Designer visual editor.
Qt Designer (standalone) Open-source Included with Qt installation; run designer.exe to open and visually edit .ui files.
Any text/XML editor Open-source VS Code, Notepad++, or any text editor can open and inspect the XML structure. Not for visual editing.
macOS1 app
Qt Creator Open-source Open .ui file in Qt Creator on macOS; same workflow as Windows/Linux.
Linux3 apps
KDevelop Open-source KDevelop can open Qt projects including .ui files; integrates with Qt Designer for visual editing.
Qt Creator Open-source Open .ui file in Qt Creator; embedded Qt Designer provides visual editing.
Qt Designer (standalone) Open-source Run designer from terminal to open .ui files visually.

Technical details

deep spec
Container formatXML document (UTF-8 plain text)
Root element<ui version="4.0"> - version string unchanged since Qt 4 for backward compatibility across Qt 4, 5, and 6
Widget hierarchyNested <widget> elements with typed <property> children (geometry, text, font, palette, and more)
Signal/slot encoding<connections> block listing sender object, signal name, receiver object, and slot name
Resource references<resources> block listing .qrc file aliases for icons and other assets
Custom widget support<customwidgets> block declaring class name, include header, and container flag for non-standard widgets
Build-time compilationQt's uic (User Interface Compiler) generates a C++ header (e.g. ui_mainwindow.h) from the .ui file at build time
Runtime deploymentDesign-time file only; not deployed - compiled away into generated C++ code during build
MIME typeapplication/x-designer
EncodingUTF-8 plain text; no binary sections
Platform supportWindows, Linux, macOS, Android (Qt for Android), iOS (Qt for iOS), embedded Linux
Project integrationReferenced by .pro / .pri project files via the FORMS variable; also supported via qt_add_ui() in Qt 6 CMake builds
Released~1999 (Qt Designer introduced with Qt 2.x)
Latest versionQt 6 UI format (2020+); backward compatible with Qt 4/5 UI files
Open standardYes · royalty-free
Specificationdoc.qt.io

UI conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with UI files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about UI files.

Frequently asked questions

What is a .ui file?
A Qt Designer user interface file - an XML description of a GUI form or dialog for a Qt Widgets application. It defines the layout and properties of buttons, text fields, and other widgets.
How do I open a .ui file?
Open it with Qt Creator (the official Qt IDE) for visual editing, or with any text/XML editor to inspect the XML. Qt Creator includes an embedded Qt Designer for drag-and-drop UI editing.
How do I convert a .ui file to C++?
Run: uic -o ui_formname.h formname.ui. In a Qt project using qmake or CMake, this happens automatically at build time.
How do I use a .ui file in Python?
Use pyuic6 (for PyQt6) or pyside6-uic (for PySide6): pyuic6 form.ui -o ui_form.py. Then import the generated class in your Python code.
What is the difference between .ui and .qml?
.ui files describe Qt Widgets-based UIs (traditional desktop widgets, XML format). .qml files describe Qt Quick UIs (modern, GPU-accelerated, declarative JavaScript-like language). New Qt 6 projects often prefer QML for fluid UIs.
Why is UltraISO listed as opening .ui files?
It is not - UltraISO is a CD/DVD image tool unrelated to Qt .ui files. This is a database error.

References

1Qt 6 - Qt Designer's UI File Format (official)doc.qt.io
2Qt 5 - Qt Designer's UI File Formatdoc.qt.io

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.MDMarkdown Document
4.BINCD/DVD Disc Image (BIN/CUE)
5.NOMEDIAAndroid No-Media Marker File
6.PARTPartial Download File
7.RPMSGRestricted Permission Message
8.EXEWindows Executable (Portable Executable)
9.AVIFAV1 Image File Format (AVIF)
10.DBSQLite Database File

Related extensions

.DOStata Do-File
.MDMarkdown Document
.HEXIntel HEX File
.XSDXML Schema Definition
.MAPSource Map (JavaScript / CSS)
.CONFIGConfiguration File

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z