qt-creator

Where to add “make install” in Qt Creator?

会有一股神秘感。 提交于 2021-01-27 20:57:24
问题 Does it make a difference (and if so, what difference) where I add the make install step? In some posts they say to add it under Build like in the first screenshot. Others say it needs to go under Run/Deployment like in the 2nd. Are both ways equivalent? 回答1: If it is part of Build Settings, it will be done every time you do a build under Qt Creator (assuming previous steps succeeded). If it is part of Run Settings, it will only be run when you actually run the app under Qt Creator. It

Cannot run Qt example in Qt creator: The program has unexpectedly finished

僤鯓⒐⒋嵵緔 提交于 2021-01-27 19:14:28
问题 Recently I tried to upgrade Qt to 5.8.0 on Windows 7 32bit from Qt5.6.2 MSVC 2013, and I saw strange issues. I downloaded and installed Visual Studio 2015 from this link: https://www.visualstudio.com/downloads/ After I installed Qt 5.8.0 MSVC 2015 version, Qt Creator 4.2.1 can be launched. From the welcome page, I selected the example named: "Address Book Example". And then after clicking "Configure" project, the project is listed in Qt Creator. Now I tried to build the project, which was

CMake, QtCreator and header files

半城伤御伤魂 提交于 2021-01-27 05:40:13
问题 This is not exactly a compilation related problem, but much more a visual issue ... I have a project, set up with CMake (this is not a Qt project). When I open this project with QtCreator it nicely finds all the related files, and the files in the project browser are in alphabetical order like: Project + abc.cpp + abc.h + def.cpp + def.h However, if I work with QtCreator and a QMake based project, the headers and sources are nicely separated like: Project + Headers | + abc.h | + def.h +

Qt: Cannot execute '': The requested operation requires elevation

故事扮演 提交于 2021-01-27 03:55:33
问题 I am not able to run the application the Qt creator. It complains the following error: Cannot execute '': The requested operation requires elevation My .exe file has a Windows administrator shield symbol on it. Do I need to make a project settings changes? I am extensively using Qt File library for doing some file operations. 回答1: What's your executable's file name? Without an embedded manifest, windows tries to be smart and wants to run executables with "install", "update", "setup", "patch",

Qt: Cannot execute '': The requested operation requires elevation

拥有回忆 提交于 2021-01-27 03:54:49
问题 I am not able to run the application the Qt creator. It complains the following error: Cannot execute '': The requested operation requires elevation My .exe file has a Windows administrator shield symbol on it. Do I need to make a project settings changes? I am extensively using Qt File library for doing some file operations. 回答1: What's your executable's file name? Without an embedded manifest, windows tries to be smart and wants to run executables with "install", "update", "setup", "patch",

How to use DEPLOYMENTFOLDERS directive in Qt Widget based application

﹥>﹥吖頭↗ 提交于 2021-01-22 07:09:22
问题 When I use the Qt Creator to create a Qt Quick / QML project it adds DEPLOYMENTFOLDERS to the .pro file. I can use this directive to get some folders/files copied to the build directory upon building (compilation) of the application. How can I use this in a simple Qt Widget based application? Qt Creator doesn't add it for a simple Qt project and when I manually do it, it's not working. This is my project file: folder_01.source = sounds #folder_01.target = DEPLOYMENTFOLDERS += folder_01 QT +=

How to use DEPLOYMENTFOLDERS directive in Qt Widget based application

瘦欲@ 提交于 2021-01-22 07:06:19
问题 When I use the Qt Creator to create a Qt Quick / QML project it adds DEPLOYMENTFOLDERS to the .pro file. I can use this directive to get some folders/files copied to the build directory upon building (compilation) of the application. How can I use this in a simple Qt Widget based application? Qt Creator doesn't add it for a simple Qt project and when I manually do it, it's not working. This is my project file: folder_01.source = sounds #folder_01.target = DEPLOYMENTFOLDERS += folder_01 QT +=

How to use DEPLOYMENTFOLDERS directive in Qt Widget based application

不羁的心 提交于 2021-01-22 07:05:55
问题 When I use the Qt Creator to create a Qt Quick / QML project it adds DEPLOYMENTFOLDERS to the .pro file. I can use this directive to get some folders/files copied to the build directory upon building (compilation) of the application. How can I use this in a simple Qt Widget based application? Qt Creator doesn't add it for a simple Qt project and when I manually do it, it's not working. This is my project file: folder_01.source = sounds #folder_01.target = DEPLOYMENTFOLDERS += folder_01 QT +=

Qt Designer - window won't get smaller than a QLabel with pixmap

荒凉一梦 提交于 2021-01-02 05:38:27
问题 I'm creating a program (in Qt Creator 2.8.1, Qt 5.1.1) that basically shows an image, in this case a playing card (along with a few buttons, labels, and a line edit). All widgets are in vertical/horizontal layouts, and the window layout is a grid layout. I reimplemented the main window's resize event to get the image to resize correctly and ajust the pixmap to it's size - basically, the label expands vertically as much as it can (vertical size policy set to Expand(1)), and then the image is