qt-creator

Unable to build Android APK in Qt Creator

我只是一个虾纸丫 提交于 2019-12-18 06:12:09
问题 I am trying to build an android APK in Qt Creator 3.0.1 . I have properly given the configured Android SDK, NDK, Ant, Java Jdk. In Build Android APK step under Build there is a option to specify Android Build SDK i.e target SDK. I am currenty using API 21 but it i am not getting an option to specify it over there. Plz Help how can i do that. 回答1: First you should select Tools > Options > Android to add paths to the Android NDK and SDK : Also select the Automatically create kits for Android

How can I make QtCreator break on exceptions?

半城伤御伤魂 提交于 2019-12-18 04:28:07
问题 I am Debugging some BOOST unit tests in QtCreator and it sadly happened that they crash with an exception. How can I make QtCreator automagically break if any exception is raised? In Visual Studio there is a tick box for this one, is it also available in QtCreator? In my case, BOOST catches the exception, so the program doesn't technically crash. However, the reported message is not really helpful. I tried the same in KDevelop previuosly, hence I am asking separate questions about both of

Failed to Initialize GLEW. Missing GL version

戏子无情 提交于 2019-12-18 03:50:09
问题 I've tried to set up SFML 2.0 with the latest version of the qt creator, I've set up SFML right and I imported a small game I wrote in visual studio. Upon compilation, I get this: What I tried Reinstalling the entire qt SDK and qt creator IDE from scratch Reinstalling SFML reinstalling mingw I tried to write a simple program to make sure it's not my code, the program compiles correctly but when I close the application, I get OpenGL errors which is not normal I tried posting a thread on the

qtcreator - exe does work fine inside qtcreator but doesn't outside

天涯浪子 提交于 2019-12-18 03:45:36
问题 I want to give a friend of mine a release build of a little project. It works perfectly fine when started from inside qtcreator, but doesn't open when double-clicked on the .exe file. It doesn't even give me an error message. Now when I tried to copy a few Qt .dll files (like Qt5Core.dll, Qt5Gui.dll, Qt5Widgets.dll) next to my exe file, it didn't change anything. How can I know what dependencies my project has? The .pro file doesn't tell me so much QT += core gui greaterThan(QT_MAJOR_VERSION,

Where are variables such as $(MKDIR) and $(COPY_DIR) defined?

ⅰ亾dé卋堺 提交于 2019-12-18 03:22:21
问题 I am trying to get hold of the values these variables contain but I couldn't find any informations about them on the web and searching for such strings in C:\Qt folder brought up nothing. Where are these variables defined ? 回答1: Before a .pro file is processed and your Makefiles are generated by qmake several other files are pre-processed based on your compiler and platform. These files have the extension .prf and .conf and are loaded from a directory called mkspecs. The values of MKDIR and

to_string not declared in scope

只谈情不闲聊 提交于 2019-12-18 02:00:31
问题 I am trying to make the to_string(NUMBER) function work in my Ubuntu computer for weeks but it never ever works in the QT environment or anywhere else. My code works perfectly on my Mac osx, but when I try running it in Ubuntu it complains that to_string is not declared in scope. Any solutions to this would be greatly appreciated. I have tried to update the gcc compiler but it didn't fix the problem. Please help. I am using QT Creator 4.8.1 and I am using C++ and latest version of Ubuntu. int

Using a static library in Qt Creator

放肆的年华 提交于 2019-12-17 15:23:17
问题 I'm having a hell of a time finding documentation which clearly explains how to use a static library in Qt Creator. I've created and compiled my static library using Qt Creator (New=>Projects\C++ Library=>Set type to "Statically Linked Library"). It compiles and spits out a ".a file". The problem I encounter is when I try to use the library. I have another project that would like to use it (#include files in the library, etc) but I don't know the proper way to link with the library or include

Configuring the GCC compiler switches in Qt, QtCreator, and QMake

心已入冬 提交于 2019-12-17 07:13:09
问题 I recently tried to use Qt Creator 1.3.2, Qt 4.6.2, and GCC 4.4.0 (32-bit version) on Windows 7 (64-bit) to compile an application using some of the experimental C++0x extensions and encountered the following (fatal) error: This file requires compiler and library support for the upcoming ISO C++ standard, C++0x. This support is currently experimental, and must be enabled with the -std=c++0x or -std=gnu++0x compiler options. In my search for a solution, I came across the thread qmake and

Qt C++ Project with non-inline assembly

吃可爱长大的小学妹 提交于 2019-12-14 03:52:37
问题 I am using Windows XP, and Newest Qt Creator with QtSDK and the built-in gcc compiler. The question is, how to use full assembly in a C++ Qt Project. I know how to use inline assembly, but I don't know how to do non-inline(written in a separate .asm file) full assembly, in a Qt C++ project. Is this possible with a Qt C++ project, and if so, how? EDIT: * pro file TEMPLATE = app CONFIG += console CONFIG -= qt SOURCES += \ calc.S calc.S section .data hello: db 'Hello world!', 10 helloLen: equ $

Qt Creator and conditional build

谁说我不能喝 提交于 2019-12-14 02:19:24
问题 In our project, we added some source and header files if a MACRO is defined. We do this like that, in the .pro file: contains(DEFINES, MY_DEF) { message("Support MY_DEF") INCLUDEPATH += \ my_include_dir SOURCES += \ source1.cpp \ source2.cpp HEADERS += \ my_include_dir/header1.h \ my_include_dir/header2.h FORMS += \ myform.ui } This works fine during the build. The files are not compiled if MY_DEF is not defined. MY_DEF is defined like that: DEFINES += MY_DEF Curiously, Qt Creator always