Questions tagged [uic]

UIC is the User Interface Compiler for Qt. The uic reads an XML format user interface definition (.ui) file and creates a C++ header file.

UIC is the User Interface Compiler for Qt. The uic reads an XML format user interface definition (.ui) file and creates a C++ header file.

45 questions
1
vote
1 answer

Is there a way to call pyside2-uic on Save?

Is there a way to call pyside2-uic automatically after I save the .ui file?
Jack Lilhammers
  • 1,207
  • 7
  • 19
1
vote
1 answer

Python & qtDesigner uic pop-up window lineEdit access

I'm newbie. I want to click a pushButton to open a new window and take text from main window lineEdit and copy to new pop-up window lineEdit. So far I an create new window but can't access lineEdit. No errors, app is not responding. This is what I…
MxWx
  • 13
  • 2
1
vote
1 answer

Multiple Ui_Dialog definitions due to multiple *.ui files?

I'm working on a RaspberryPi with a 3.5 inch LCD screen. I have a Qt 5 based application that operates in kiosk mode without a title bar. The app uses the entire 320x480 screen. I am trying to add a second dialog that is displayed when the user…
jww
  • 97,681
  • 90
  • 411
  • 885
1
vote
0 answers

Qt's uic on mac os x can't find proper QtCore

I am trying to build this guy https://github.com/cnr-isti-vclab/nexus/blob/master/INSTALL.md on my machine (Mac OS X 10.14.6). I am running into issue with Qt's uic. I brew installed Qt5, version 5.12.3. I added it's bin folder to my $PATH. When I…
SpaceBear
  • 832
  • 3
  • 8
  • 22
1
vote
2 answers

PySide2-uic generates increasing item index for unrelated widgets

I have a question regarding pyside2-uic as it seems to generate faulty code. First off, is there no way to disable the translation in Qt Designer? It's a pain to disable the translateable checkbox for every string and I find the retranslateUi code a…
HdM Upload
  • 35
  • 3
1
vote
1 answer

QtDesigner Pyqt / Pyside disable translatable by default

is it possible to set the translataable checkbox for everything inside the qtdesigner to disabled as default. I only need one language and much prefer the cleaner auto generated code, leaving the retranslateUI funtion empty and setting everything up…
Jan
  • 88
  • 5
1
vote
0 answers

How can we cross compile qmake?

When qt5 (5.9.2) is cross-compiled, the qmake/moc/rcc/uic tools are generated for the host machine. Is it possible to generate (cross-compile) them for the target device? Thanks.
Fatih Erol
  • 11
  • 3
1
vote
1 answer

Qt5: Text ID based translations. Add custom Parameters to uic

I'm using Qt 5.9 for my project and I have to use ID based translations. My problem is, that I can't change the parameters for the uic executable. The qmake variable "QMAKE_UIC" has been removed in Qt 5. Does anyone know, how I can add the parameter…
ramón
  • 81
  • 3
1
vote
1 answer

Using CMake in Qt: location ui_*.h is not recognized by Qt Creator

I tried to use Qt Creator to manage User Interface files *.ui: mainwindow.cpp: #include "mainwindow.hpp" #include "ui_mainwindow.h" MainWindow::MainWindow(QWidget * parent) : QMainWindow{parent} , ui{new Ui::MainWindow} { …
Tomilov Anatoliy
  • 15,657
  • 10
  • 64
  • 169
0
votes
0 answers

How to set --resource-suffix for pyside2-uic like PyQt5.uic.pyuic.py does, and set prefix for class name

I switched from pyqt5 to pyside due to the licenses. I would like to make the program directory sharp so I want to named the same function source file in a same name rules and different suffix name. pyside2-rcc tool whith -o option will generate…
0
votes
1 answer

Pyside6-uic Fatal error in launcher: Unable to create process using

I install Python on my company computer, also I want to install the Pyside6 module but I can't use the "pip install pyside6" command to install it because our company computer has a setting firewall and I have no authority to request it. so I use my…
Dylan
  • 1
  • 1
0
votes
1 answer

Using derived QLabel with buddy in .ui file generates incorrect code

Have plenty of .ui files with derived classes, but now I decided to derive QLabel in some places. These use the "buddy" feature. Relevant part of the .ui file:
pythonator
  • 384
  • 2
  • 12
0
votes
1 answer

How to open an load uic window as a second window

So @furas I did what you told me. But still it didn't work. The screen freezes when opening the second window. I let the app = ... stay in if main and only made a variable of the second window to call over in the main file. I am reposting some of my…
user20084690
0
votes
0 answers

What is the difference between using QMainWindow from importing and the use of uic.loadUiType?

Both of the following codes are codes that show empty gui. But the code above is QMainWindow From PyQt5.QtWidgets import QApplication, QMainWindow Use this and the code below is uic.loadUiType. If you look on the Internet, you can't see the…
agile
  • 77
  • 5
0
votes
0 answers

How to load resource by PyQt5 uic loadUi?

I am trying to load ui by PyQt5.uic.loadUi. The ui window can load and show correctly, but the resouce(image, icon) of the ui window can not be loaded, so the window can not display the image (background). My folder structure is as…
oFo
  • 21
  • 3