qt-creator

Qt Creator: When I enable Shadow Builds, why do I get error related to missing files?

余生长醉 提交于 2019-12-24 22:05:15
问题 I added an image to resources, and displaying it worked fine. Then, I removed the file from resources in the Qt project, and I moved the file to a new images folder and re-added it to resources. Now the project will only compile if "Shadow Build" option is un-checked in build settings. If Shadow Build is enabled, I receive an error, "No rule to make target '../--project_name--/--image_name--', needed by 'debug/qrc_qml.cpp'. Stop." where --project_name-- is the name of my project, etc. This

Qt Creator 4.0.1 (Qt 5.6.2 MSVC2015 32bit) stopped accepting toolchains/compilers

半城伤御伤魂 提交于 2019-12-24 19:08:19
问题 I was able to build my Qt projects with Qt Creator 4.0.1 (Qt 5.6.2 MSVC2015 32bit) without any problem until it (suddenly) stopped compiling. In the last picture when I assign Qt5.6.2 to msvc14 it says incompatible ABI (2005 vs 2015) which is strange as Visual Studio 2015 is compiler 14. Not sure what other info I should provide. Thank you. 回答1: I deleted content of the "c:\Users\user\AppData\Roaming\QtProject" folder and now Qt Creator seems to be happy again. Some file(s) must have been

QtCreator: Avoid redefining LIBS in Qt subdirs project

你离开我真会死。 提交于 2019-12-24 17:55:59
问题 I have a Qt subdirs project with the following structure: ExternalQtProject QtSubdirProjects - GUI - WebService WebService contains LIBS from the external Qt project (.pro file in WebService) LIBS += -L<path to ExternalQtProject> LIBS += <some ExternalQtProject .obj files> GUI uses the web service (.pro file in GUI): LIBS += -L<path to WebService> LIBS += <WebService .obj files> So basically GUI is using one header file from WebService , which in turn uses several header files from

Using git push from Qt Creator

谁说我不能喝 提交于 2019-12-24 16:09:46
问题 I want to work with the git tools integrated into Qt. So far I have set up a project and the git repository, and I can commit, status and all others from the IDE and from command line as well. But when I try to use pull or push from the gui it hangs and after 60 seconds gives me this error: The command 'C:/Program Files (x86)/Git/cmd/git.cmd' did not respond within the timeout limit (60000 ms). When I use the command prompt for push or pull it prompts me for my ssh passphrase and it works

Can I add columns in a QListView in Qt?

浪子不回头ぞ 提交于 2019-12-24 13:08:09
问题 Can I add columns in a QListView object?? here's something I found here: model->setHeaderData( 0, Qt::Horizontal, "numéro" ); model->setHeaderData( 1, Qt::Horizontal, "prénom" ); model->setHeaderData( 2, Qt::Horizontal, "nom" ); //... model->setData( model->index( line, 0 ), contact->num(), Qt::DisplayRole ); model->setData( model->index( line, 1 ), contact->prenom(), Qt::DisplayRole ); model->setData( model->index( line, 2 ), contact->nom(), Qt::DisplayRole ); Since I'm using Qt Creator 2.0

Use only property tree from boost libraries

北城余情 提交于 2019-12-24 11:15:14
问题 I need to parse a large XML file using property tree in boost libraries. How to use them ONLY instead of including the whole boost libraries? 回答1: There's no need for you whatsoever to include the whole boost libraries. For example, if you look in the quick tutorial in the appropriate boost documentation page for XML Property Trees, you see that you only need to include the following: #include <boost/property_tree/ptree.hpp> #include <boost/property_tree/xml_parser.hpp> In order to get the

Can't link GLFW in qtcreator

徘徊边缘 提交于 2019-12-24 10:39:34
问题 I want to link GLFW. I already installed: sudo apt-get install cmake make g++ libx11-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxrandr-dev libxext-dev Then I create catalog with 2 sub catalogs build(cmake out source build) and libs(for external libraries). from build catalog I run cmake with command "cmake .." CMakeLists.txt in main catalog cmake_minimum_required(VERSION 2.6) project(MyProject) # project name #version number set(MyProject_Version_Major 1) #numer wersji glowny set

QtCreator 4.1.0 dosn't show webengineview(QT 5.7) for MainWindow form editor

笑着哭i 提交于 2019-12-24 07:58:44
问题 I'm porting my app from QT 5.5 to QT 5.7. So I need to change WebKit to QWebeEngine, but I can't find QWebEngineView from Widget browser in Visual editor. How I get the QWebEngineView to Widget list. I have added QT += webenginewidgets to PRO file but it dosen't show the widgets. 回答1: Do you need the QWebEngineView in the Widget palette for any specific reason? You can use any of the web engine widgets directly from code (although it is of course not as simple as a drag-and-drop). As a simple

Qt - Android NDK: No such file or directory

半世苍凉 提交于 2019-12-24 06:26:35
问题 I have been struggling with the following problem for several days. I have a project that is working great on desktop and a custom embedded device, but when I attempt to compile for Android I get the following error: /usr/bin/sh: C:android-ndk-r10e-windows-x86_64android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++: No such file or directory The NDK does exist at that location. I have tried moving the NDK to different locations, and

Qt - Android NDK: No such file or directory

一笑奈何 提交于 2019-12-24 06:26:33
问题 I have been struggling with the following problem for several days. I have a project that is working great on desktop and a custom embedded device, but when I attempt to compile for Android I get the following error: /usr/bin/sh: C:android-ndk-r10e-windows-x86_64android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++: No such file or directory The NDK does exist at that location. I have tried moving the NDK to different locations, and