qt-creator

Cannot run my exe file on another computer. “Application requested the runtime to terminate it in an unusual way” error

此生再无相见时 提交于 2019-12-22 03:59:14
问题 My exe runs completely fine on the computer I programmed it on. It debugs fine, releases fine, and I can move the exe file from the 'release' folder into a new file, locate the needed .dll files from C:\pathtoqt\ming47_32\bin and it still runs fine. However, when I attempt to run this program on another computer with the .dll files included, I cannot do it and I get the "Application has requested the runtime to terminate it in an unusual way". I have tested this on 2 windows 7 computers and 1

Using cin in QtCreator

末鹿安然 提交于 2019-12-22 03:57:49
问题 For school, we use C++ as the language of choice. I am currently using QtCreator as an IDE, and for its GUI library, it is wonderful. The school is using Visual Studio. However, most of the programs we are writing make use of cin and cout for input/output. cout works fine as output, as you can see what it puts out in the application output, but there is no way to provide to cin as if it were on a console, like Visual Studio uses for its C++. An example: #include <iostream> #include <string>

Why is BUILD FAILED?

我怕爱的太早我们不能终老 提交于 2019-12-21 21:25:50
问题 I am trying to run simplest Qt application on android device. There are AVD and real phone with android. For both of them I get error: BUILD FAILED /home/user1/dev/android-sdk-linux/tools/ant/build.xml:649: The following error occurred while executing this line: /home/user1/dev/android-sdk-linux/tools/ant/build.xml:655: Execute failed: java.io.IOException: Cannot run program "/home/user1/workspace/build-Test11123-Android_for_armeabi_v7a_GCC_4_9_Qt_5_4_2-Debug/android-build/${aidl}": error=2,

Qt Creator on Mac and boost libraries

大兔子大兔子 提交于 2019-12-21 21:22:22
问题 I am running QtCreator on Mac... I want to start working on boost libraries ... So, I installed boost libraries using brew install boost After that I created a small boost hallo world program and made the changes in .pro file as follows TEMPLATE = app CONFIG += console CONFIG -= app_bundle CONFIG -= qt unix:INCLUDEPATH += "/usr/local/Cellar/boost/1.55.0_1/include/" unix:LIBPATH += "-L/usr/local/Cellar/boost/1.55.0_1/lib/" SOURCES += main.cpp LIBS += \ -lboost_date_time \ -lboost_filesystem \

Getting “No qmlscene installed.” warning in “QT CREATOR” on “Ubuntu”

你离开我真会死。 提交于 2019-12-21 09:11:13
问题 i added QTStatic to QT Versions, but i cant use this version to build and set in kits tab. i uploaded screenshot below : (plz help) Versions Tab Screenshot Kits Tab Screenshot 回答1: I had the same issue under Debian Jessie. I fixed it by installing the qtdeclarative5-dev package. 来源: https://stackoverflow.com/questions/34918115/getting-no-qmlscene-installed-warning-in-qt-creator-on-ubuntu

Qt Creator problem. UI changes not showing when project is built

♀尐吖头ヾ 提交于 2019-12-21 05:12:13
问题 I'm making changes to a form in Creator but when I build the changes are not being "refreshed". I've gone so far as to remove every element from the form and get rid of every stylesheet but when I build the project I get the same result; as if I had never made a change at all. What gives? Am I missing something obvious? (obvious to everyone but me.. obviously) 回答1: I guess you're using QtCreator 2.0? I found the same strange issue. You have two options: Remove the ui_{the_name_of_design}.h

How to specify libraries only for Android platform build in .pro file?

半世苍凉 提交于 2019-12-21 04:19:12
问题 I'm trying to use QtCreator (2.7.2) + QT (5.1.0) to build an application that runs on both desktop (Linux) and mobile (Android) platforms. To achieve this, I need to use different pre-built libraries depending on the target platform. How do I specify this in the .pro file? The wizard only offers linux/mac/windows as platform choice like unix:!mac { message("* Using settings for Unix/Linux.") LIBS += -L/path/to/linux/libs } I've tried android { message("* Using settings for Android.") LIBS +=

Apply chrome like tabs in Qt

南楼画角 提交于 2019-12-21 02:28:38
问题 Ivan made this -- see http://ivan.fomentgroup.org/blog/2009/03/29/instant-chrome/ -- but I don't know how since I am new to Qt. Does anyone have Idea how to achieve this? 回答1: The first trick is that the window does not have window manager decorations. This is a hint you need to give to the window manager using the NetWM stuff. The good thing is that Qt exports that functionality for you: http://doc.qt.digia.com/4.5/qwidget.html#windowFlags-prop You see, they have the Qt::FramelessWindowHint,

Qt Creator creates both a debug and a release folder inside the designated debug folder

别等时光非礼了梦想. 提交于 2019-12-20 20:24:47
问题 I am using the default build directory in Qt Creator which is something like build-project-blah-blah-Debug . However, when I build my app in debug mode both a debug and and a release folder are created inside. If I set the build directory as build-project-blah-blah for both the debug and release builds Qt Creator does not behave properly, i.e. it complaints and it does not clean the built files. 回答1: I deduced the solution from this answer to the reverse question. In your .pro file, add the

How to use Clang as a compiler with Qt Creator on Windows?

梦想的初衷 提交于 2019-12-20 12:04:32
问题 I've installed Qt SDK with Qt Creator on my Windows 7. LLVM & Clang installed as well. CMake was already installed. Afterwards added Clang as a compiler into: Tools -> Options... -> Build & Run -> Compilers Then I've created Clang kit. However while creating new project (simple console application) I've no ability to choose Clang kit. There are only autodetected MSVC kits. Maybe the problem is that "Qt version" in Clang kit is empty. But where to get qmake for it? 回答1: You should also have an