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.

28 questions
6
votes
3 answers

How to purge QMainWindow's geometry tag in Qt Designer UI files

Qt Designer adds a geometry tag that contains the widget's default size in absolute units (pixels). This is really annoying because if you edit a ui file on a 4k monitor all of your uis will (by default) display with massive white space on a lower…
Mikhail
  • 7,123
  • 9
  • 56
  • 121
4
votes
1 answer

Customising code of Qt designer widget?

I need to add some features to a graphics widget in a form I created using the Qt Designer. For example I would normally do something like this: class custom_gv(QGraphicsView): def __init__(self): super().__init__() def…
John O'Neil
  • 335
  • 1
  • 3
  • 14
2
votes
1 answer

how to make GUI Qt project with cmake in Qt Creator with .ui files

I want to created a project that uses cmake as it's build system sn QTCreator . ├── CMakeLists.txt ├── CMakeLists.txt.user ├── main.cpp ├── notepad.cpp ├── notepad.h └── notepad.ui here is my cmake file:- cmake_minimum_required(VERSION…
user9074174
1
vote
1 answer

python generator missing in uic while trying to convert .ui file to .py

I'm trying to convert a .ui file into a python file using uic file.ui -o file.py and other combinations of that, but even though the generated file is a .py file, the code that's in it is c++. After some googling and researching some uic prefixes I…
starGazer
  • 38
  • 4
1
vote
1 answer

CMake Qt5 and AUTOUIC not rebuilding when .ui file touched

I have a Qt5 project, using CMake with AUTOUIC, AUTOMOC, and AUTORCC. My problem is that if I change one of the .ui files, I expect UIC to run and produce the corresponding ui_XXX.h file. It doesn't. I have the .ui files listed in my add_library(...…
James
  • 98
  • 1
  • 6
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
  • 83,594
  • 69
  • 338
  • 732
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
  • 790
  • 3
  • 7
  • 20
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
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
  • 2
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
  • 71
  • 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
  • 13,614
  • 8
  • 46
  • 134
1
vote
1 answer

QT creator how to make an UI generated class inherit other class?

We know that, when use QT creator to build a project with a ui file (eg. mainwindow.ui), it will automatically generate a .h file with a class definition (eg. ui_mainwindow.h) for that .ui file. The generated class in the .h will be as follow: My…
ricky
  • 1,768
  • 3
  • 15
  • 40
0
votes
0 answers

Qt6 migration - UIC generated code fails to compile (connect slots) - updated

I'm trying to port mine project from Qt5 to Qt6. Mine problem is that UIC generated code looks like this: QObject::connect(SelectHome, &QToolButton::clicked, toQPSQLSettingUI, qOverload<>(&QWidget::selectHome)); MSVC2019 compilations fails…
ibre5041
  • 4,193
  • 1
  • 15
  • 28
0
votes
0 answers

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,084
  • 4
  • 16
1
2