qt-creator

Use own documentation in Qt Creator help mode

前提是你 提交于 2019-12-13 02:56:28
问题 Qt Creator has the convenient feature that I can select any Qt class, press F1 and the Qt documentation for that class opens (see second link below). Now I would like to have the same functionality for my own classes which are already documented using Doxygen. I've found the IMHO quite short documentation for the Qt Help Framework and Qt Creator Help Mode. I've also already found the menu in Qt Creator where i could add more help files, but I didn't find anything about how to exactly define

How to get the DCMTK library working in Qt Creator?

霸气de小男生 提交于 2019-12-13 02:39:19
问题 I am trying to get DCMTK working in Qt Creator, but I got stuck at step 5. Please let me know if the other steps are wrong. Tools: Qt Creator: Qt Creator 3.5.1 (opensource), based on Qt 5.5.1 (MSVC 2013, 32 bit) Visual Studio: Microsoft Visual Studio Ultimate 2013, version 12.0.40629.00 Update 5 DCMTK: v3.6.0 CMake: v3.3.2 What I did: I generated the project files using CMake I opened C:\dcmtk-bin\DCMTK.sln in Visual Studio and built ALL_BUILD I restarted Visual Studio in admin mode, opened C

qmake not generating binary resource files

不羁岁月 提交于 2019-12-13 02:25:34
问题 Specs: Qt Creator 2.5.1, Qt 4.7.4(32bit) It is my understanding from the Qt documentation that including a resource (.qrc) in the .pro file of Qt is all that is required to get qmake to generate the correct qrc_*.cpp files. That doesn't seem to be the case for my project. When running qmake the makes files are created and there are references to the qrc_ file I'm looking for under compiler_rcc_clean, just not in the build chain. [Update] At a suggestion from comments below the makefile

Compile and link C++ and C programms together with QT-Creator

冷暖自知 提交于 2019-12-13 02:15:15
问题 so I have serveal C++ files and basically need to call a C function after the C++ part of my program is done. So if there is a way to just somehow magically "start the C file" (I hope you know what I mean) I would be glad to hear about that too. Now to my actual problem: I'm trying to call the C function at the end of my main function in the main C++ file. I already saw all of this Call a C function from C++ code and tried to do everything the correct way, my header file for the C file looks

How can I listen to a C++ signal from QML?

爷,独闯天下 提交于 2019-12-13 00:54:23
问题 I have what I'm calling a C++ "service" who's interface I want to expose to QML. I'm trying to use QQmlContext's setContextProperty to link the object into the QML and connect to it from a QML Connections block. QML isn't complaining with a reference error as it did previously when I hadn't registered the service in the QML context: qrc:/main.qml:13: ReferenceError: service is not defined So, QML seems to find the service object now, however the QML slot javascript function is not getting

QtCreator's code inspector breaks when I use -isystem flag instead of INCLUDEPATH

↘锁芯ラ 提交于 2019-12-13 00:53:53
问题 I wanted to suppress warning from external libraries which can be done by marking them as system libraries. I figured out this is how to do it in .pro QtCreator project file: QMAKE_CXXFLAGS += -isystem ../libs/boost159/ The problem is that QtCreator relies on the INCLUDEPATH setting, expects this: INCLUDEPATH += ../libs/boost159/ If I remove it, the QtCreator no longer can find boost libraries: I originally wanted to report this as a bug but after some reports I no longer believe the

Building Qt project for C++11 standard

↘锁芯ラ 提交于 2019-12-12 20:13:54
问题 I am trying to build my Qt project with C++11 standard. I added this flag in the build steps, additional argument option, in the Qt Creator : -std=c++11 But I got this error while building : Unknown option -std=c++11 g++ version info : g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 Any ideas ? 回答1: Use the qmake project file, add this line: QMAKE_CXXFLAGS += -std=c++11 LE: also 4.6.3 might not support C++11 (as far as i know 4.7 and higher support -std=c++11) so the option for the 0x features

CMake Configuration Issue when using Qt Creator

两盒软妹~` 提交于 2019-12-12 20:10:23
问题 I am trying to set up a build environment in qt creator using cmake, but no matter what I try I cannot get it to progress. It fails with issue; "Configuration Issue". When expanding the details in the General Messages section it looks like its failing to compile a test c program. I can't see anything wrong with my qt creator configuration; which I had to set up in the past manually to use qmake for a qt app. This worked as desired. Here is that configuration. This is the error in full as

QT: Hide QML Debugging warning

浪尽此生 提交于 2019-12-12 17:55:07
问题 QML debugging is enabled. Only use this in a safe environment. I'm actually working on a test software in Python for a QtCreator project which need to use the QML Debugging. The python software is running the built project and test it's features. I would like to actually hide that message without disabling the QML debug. Is it possible to do it? 回答1: You can specify DEFINES += QT_QML_DEBUG_NO_WARNING in the .pro file to disable the warning. 来源: https://stackoverflow.com/questions/37996105/qt

OpenCV with Qt: The program has unexpectedly finished

☆樱花仙子☆ 提交于 2019-12-12 15:19:18
问题 I am trying to configure OpenCV with Qt Creator 2.7.0 (Qt 5.0.2) on windows 8 64bit. While executing my program, I get the following error: The program has unexpectedly finished. This is my main.cpp #include "mainwindow.h" #include <QApplication> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> using namespace cv; int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; w.show(); IplImage *image = cvLoadImage("E:\\lena.jpg"); //If this is removed,