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
0
votes
0 answers

PyCharm loadUi findChild - unresolved attribute reference

I use PyCharm and imported an Qt Designer ".ui" with PyQt6: from PyQt6 import QtWidgets, uic class Ui(QtWidgets.QMainWindow): def __init__(self): super(Ui, self).__init__() uic.loadUi('C:/Users/M/PycharmProjects/2021-12-15_book…
Joe
  • 15
  • 6
0
votes
0 answers

Qt UIC: Non-modal pop-up not inheriting style from parent

I am trying to create a non-modal (modeless) QMessageBox window with several buttons and text. To make it modeless, I am giving it the MainWindow object as its parent (which inherits from QMainWindow). For example: class MainWindow(QMainWindow): …
WhyIsItReal
  • 81
  • 3
  • 14
0
votes
1 answer

PyQt5 calling gui from pyuic5 converted file or uic.loadUi

Hi I am new to python (up to lecture 2 and half of MIT 6001 Introduction to Computer Science and Programming in Python) nevetheless I started playing with Gtk & Glade and PyQt5 and Designer. following https://stackoverflow.com/a/54081597/9877065 I…
pippo1980
  • 2,181
  • 3
  • 14
  • 30
0
votes
1 answer

convert Qt Designer project into C++ code

I converted my .ui file via uic into a header file, which, as far as I know, contains the header AND the implementation of the .ui file. But what part of it is the header and what is the implementation? Is there a way to seperate them…
Cpt. Crazy
  • 115
  • 1
  • 11
0
votes
1 answer

how to convert .ui fully into c++ header and source file

I created something with the Qt Creator Design-Tool. By doing so I endet up with a .ui, a .h and two .cpp (mainwindow.cpp and main.cpp) files containing the following: mainwindow.ui:
Cpt. Crazy
  • 115
  • 1
  • 11
0
votes
1 answer

How to install pyside2-uic in Ubuntu 16.04?

I've tried installing Pyside2-uic using : sudo apt-get install -y python-pyside2 sudo apt-get install pyside2-tools while I'm converting the .ui file to .py using pyside2-uic still i get error as " ImportError: No module named pyside2uic.driver…
Nanda Kumar P
  • 135
  • 10
0
votes
0 answers

How to open other windows ui from the same class?

I need open other window (configuration windows) in my app. Each window is a different class. I would like to know if I can group everything in the same class and open the window through a function. from PyQt5 import QtWidgets, uic import sys class…
0
votes
1 answer

Qt5 User Interface Compiler: -i option not available

I created a .ui file (myform.ui) using QtDesigner and I would like to create the corresponding header (myform.h) and implementation (myform.cpp) file. Now I can create the header file (myform.h) with the following command on Linux: uic mainwindow.ui…
Mantabit
  • 269
  • 1
  • 4
  • 14
0
votes
1 answer

CMake & QT5 & Conan // CMAKE_AUTOUIC not generating ui header files

I've tried solution given in this thread: CMake & QT5 - QT5_WRAP_UI not generating ui header files but nothing changes. Here is my first CMakeLists.txt (at the root of the project, which calls the second one) cmake_minimum_required (VERSION…
Zodiac
  • 1
  • 3
0
votes
0 answers

QT: uic doesn't generate header for .ui file

I am using QT 5.10 and Qt Visual Studio Tools (for Visual Studio 2015). I want to create a dll that contains a class which inherits from QDialog. So I created QT Class Library project and added an .ui file to it. But when I try to compile the…
Count Zero
  • 495
  • 6
  • 15
0
votes
2 answers

cmake 2.8.12.2 AUTOUIC not working: bug or missing feature?

I'm building a Qt project with CMake. With cmake-3.8.2 on macOS or Windows everything ok. On Ubuntu 14, where I have cmake-2.8.12.2, moc is run, but uic is not run. In CMakeLists.txt I have: set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) and the .ui…
fferri
  • 18,285
  • 5
  • 46
  • 95
0
votes
1 answer

How to create a window that opens another window with uic module ?? Qt-Designer and Python

I have a problem when trying to develop a GUI with PyQt5 and QT designer. I want to use the uic module, I have a .ui file called registro.ui, and another login.ui, as I can call from login.ui to the registry.ui,by clicking on buttom registro I also…
Andres
  • 17
  • 5
0
votes
1 answer

How to use setupUi or uic output to create a free-standing layout without a parent widget?

The output generated by uic from a .ui files always installs the layouts and child widgets on an existing widget. This works great when you intend to add the layout/children directly on a widget: #include "ui_form.h" QWidget widget; Ui::Form…
Kuba hasn't forgotten Monica
  • 95,931
  • 16
  • 151
  • 313
-1
votes
2 answers

Environment variables set in CMakeLists.txt or exported not propagated to build tools

I am trying to make the Qt build folder portable so that it can be built on one machine and shared with others. I'm running into an issue on macOS actually using the Qt uic tool in CMake with an error like this: dyld[74739]: Library not loaded:…
-1
votes
1 answer

TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict)

what's wrong with my code? I'm trying to connect my UI file with python. I'm almost sure about everything, but I can't define what the wrong is. from PyQt5.QtGui import * from PyQt5.QtCore import * import sys from PyQt5.QtWidgets import…
1 2
3