uic

Qt5 User Interface Compiler: -i option not available

独自空忆成欢 提交于 2020-04-18 05:59:12
问题 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 -o mainwindow.h An older answer on StackExchange (here) suggested using the following command to create the implementation file (myform.cpp): uic -i mainwindow.h -o mainwindow.cpp mainwindow.ui However, the command option -i doesn't seem to be

CMake Qt5 and AUTOUIC not rebuilding when .ui file touched

孤者浪人 提交于 2020-03-03 11:35:52
问题 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(... Foo1.ui Foo2.ui) declaration. This is on Windows with Visual Studio 2019. I am using the VS solution file produced my CMake. As far as I can tell, the only time Auto UIC runs is if it is building the library; touch any source file, and

CMake Qt5 and AUTOUIC not rebuilding when .ui file touched

ⅰ亾dé卋堺 提交于 2020-03-03 11:34:42
问题 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(... Foo1.ui Foo2.ui) declaration. This is on Windows with Visual Studio 2019. I am using the VS solution file produced my CMake. As far as I can tell, the only time Auto UIC runs is if it is building the library; touch any source file, and

Python & qtDesigner uic pop-up window lineEdit access

谁说我不能喝 提交于 2020-01-22 01:16:45
问题 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 have: from PyQt5.QtWidgets import QApplication from PyQt5 import uic app = QApplication([]) #Main Window ui = uic.loadUi(r"D:\UI_test\gui\main_gui_TT.ui") appedit = QApplication([]) #Pop-up uiedit = uic.loadUi(r"D:\UI_test\gui\input_TT.ui") def

CMake Qt UIC failed

白昼怎懂夜的黑 提交于 2019-12-11 15:33:21
问题 I'm currently moving my project from QMake to CMake and I'm facing a problem with Qt UIC which try to process an ui file that does not exist instead of the actual file I want him to process. I have the following architecture . |___ CMakeLists.txt |___ MyProject.pro |___ mainwindow.ui |___ resource.qrc |___ source | |___ mainwindow.cpp | |___ *.cpp |___ include | |___ mainwindow.h | |___ *.h And here is my cmake cmake_minimum_required(VERSION 3.2) # Project name project(project) # Tell CMake

QT中常用工具总结

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-05 01:52:00
1、qmake 利用.pro文件生成Makefile 命令为: eg: qmake -o Makefile hello.pro 2、 uic 利用ui界面审查.h头文件 命令为: eg: uic gotocelldialog.ui -o ui_gotocelldialog.h // -o 用来制定目标文件,生成指定的ui_gotocelldialog.h 来源: https://www.cnblogs.com/rohens-hbg/p/11895917.html

What's causing this iOS crash? UICollectionView received layout attributes for a cell with an index path that does not exist

匿名 (未验证) 提交于 2019-12-03 02:45:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm working on an app that has a UICollectionViewController that is crashing in certain mysterious situations that are hard to reproduce. The log for the crash looks like this: *** Assertion failure in -[UICollectionViewData validateLayoutInRect:], /SourceCache/UIKit_Sim/UIKit-3318.16.14/UICollectionViewData.m:417 *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UICollectionView received layout attributes for a cell with an index path that does not exist: <NSIndexPath: 0xc000000000008016> {length = 2

Customising code of Qt designer widget?

痴心易碎 提交于 2019-11-26 23:13:23
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 zoom(self): # custom code here But in this case the graphics view is a part of the window I made in Qt Designer. I know you can use the "promote to" feature in Qt designer but I don't know how to utilise that in code, especially considering that I use this method to use Qt Designer windows: from PyQt5.uic import loadUiType custom_window = loadUiType('ui.ui') class Window

Customising code of Qt designer widget?

人走茶凉 提交于 2019-11-26 08:36:12
问题 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 zoom(self): # custom code here But in this case the graphics view is a part of the window I made in Qt Designer. I know you can use the \"promote to\" feature in Qt designer but I don\'t know how to utilise that in code, especially considering that I use this method to use Qt