A command-line tool included with PyQt. It converts Qt Designer files into python modules, and is equivalent to Qt's uic command-line tool.
Questions tagged [pyuic]
99 questions
1
vote
2 answers
Opening the text file in the textEdit in the pyQt
I have the Qt files for the reading text file to the textEdit by clicking the push button, but when I am converted it to the .py it is not working. I have the following codes:
main.cpp:
#include "mainwindow.h"
#include
int main(int…

lkkkk
- 1,999
- 4
- 23
- 29
1
vote
2 answers
Python code generator for Qt .ui files in OOP style?
I'd like to know how to generate OOP style Python code from the .ui files that I have created with QtDesigner.
What I try to say is that pyuic4 generates code that isn't OOP style: The widgets don't become subclasses of the QtGui classes. The code…

user3202179
- 111
- 2
0
votes
1 answer
PyQt6 custom QtDesigner plugins don't compile
I'm using PyQt6 and found this instruction how to add plugins to QtDesigner. It worked fine for me and I can see my custom widgets as expected, however, when I use pyuic6 the compilation of the mainpage (which contains such a custom widget) doesn't…

Xirraolyphus
- 1
- 2
0
votes
0 answers
pyuic5 not giving any output
I tried to convert my .ui file made from PyQt5 Designer to a .py file. But when I run the command pyuic5 -x gui_calculator.ui -o gui_cal.py it gives nothing as output and there is no file created in the directory. Python version - 3.10.0b4
when I…

Savithu
- 75
- 9
0
votes
2 answers
no module named res_rc after compile res.qrc file using pyrrc5.exe
With Qt Creator I created a .ui file and set the main window icon referred to a .ico in res.qrc file.
Then in PyCharm I used pyuic&pyrcc to convert qt files to .py files.
However after I start up my app, I got an import error saying that No module…

Lisen
- 168
- 1
- 2
- 11
0
votes
1 answer
what does "Error: one input ui-file must be specified" in pyqt5 mean? How can I solve it?
In pycharm settting, I add "external Tool" which name is pyUIC, argument is "
PyQt5.uic.pyuic
$FileName$
$FileNameWithoutExtension$.py" ,programm is "G:\m_anaconda\envs\Mogcn\python.exe",
working directory is "$FileDir$"

xia shufan
- 1
- 1
0
votes
1 answer
QWizardPage designed in Qt Creater can not set geometry correctly when title is set
I am trying to design QWizardPage using Qt Creater.
Everything goes fine if I don't set the title of the wizardpage.
However, when I set the title, the wizard I got is strange. The title takes a large space and the wizard page can not be shown…

hellohawaii
- 3,074
- 6
- 21
0
votes
0 answers
pyuic5 works on one machine but not another
Pyuic5 is working just fine on one computer, but not on another (both OsX). When I try to run pyuic5 to convert a .ui file to a .py file, I get this;
$ pyuic5 -x evaluate.ui -o ui_Evaluate.py
-bash: pyuic5 -x: command not found
However, if I type…

MSP
- 41
- 5
0
votes
1 answer
pyuic5 not finding file
I am learning PyQt5, and while converting a ui to py, it throws this error:
Error: No such file or directory: "Disaster.ui"
The file name is Disaster.ui. The command is:
pyuic5 -x Disaster.ui -o abc.py

PRANSHUCODER
- 27
- 5
0
votes
1 answer
Python subproccess Popen python executable not found
from datetime import datetime
from shutil import copyfile
import shutil
import subprocess
import os
import sys
import os
from distutils.dir_util import copy_tree
from datetime import datetime
# Getting the current date and time
dt =…

Chris P
- 2,059
- 4
- 34
- 68
0
votes
0 answers
Converted UI to Python file is not showing anything
I designed a UI in PyQt creator (Qt Designer section) and I converted it to a .py file using the "pyuic" method. but when I run it (for example on PyCharm IDE), nothing shows up and the process finishes without any result. (sorry for my bad English…

Pouya
- 33
- 7
0
votes
0 answers
Significant Style Difference between PyQt5 and Qt Designer Preview
I designed a GUI in Qt Designer, making small adjustments and tuning the spacing to make it look somewhat decent. Unfortunately all that meticulous work pretty much went out the window when pyuic5 decided to send my GUI back to 2006. I think the…

Keegs
- 117
- 5
0
votes
0 answers
C++ header file issue in VScode
I had created an artificial horizon instrument using Qt designer. I converted the .ui file to python with pyuic. The converted python file is dependent on a C++ and .h file. But the header files in the c++ and .h files are not compatible in…

Deepu Johnson
- 79
- 4
0
votes
0 answers
How to separate between python generated ui and our apps logic in pyqt5?
The idea is I want to separate between UI and service layer using pyQt.
I read and know that I can use a generated class from .ui by subclassing it so I don't change the layout from here.
But I don't know how to put my service, inside or outside…

slawalata
- 389
- 1
- 2
- 14
0
votes
0 answers
converting python file into ui file error
I converted the UI file into a python file but when I need to modify the design, I cannot convert the python file to a UI file again
I have typed this command in the cmd:
C:\Users\moham\AppData\Local\Programs\Python\Python39\Scripts\pyuic5.exe -x…

Mohamed Amen
- 53
- 1
- 9