qt-creator

Creating a Win32 Application in Qt Creator

爷,独闯天下 提交于 2019-12-11 01:28:49
问题 I'm looking to create a win32 application in Qt Creator - is this possible? If so, how would I go about doing it? My preference would definitely be to use native C code (and the native API) if possible. 回答1: Yes, you can use Qt Creator just as an IDE. It doesn't force you to use Qt or C++ only. Create project for Qt Console Application From .pro file remove "QT += core" From main.cpp remove all Qt stuff Include required WinAPI headers Write C-code only ... Profit 回答2: If you don't want to be

Using Qt Creator with Git version control

这一生的挚爱 提交于 2019-12-11 00:53:52
问题 I’ve recently installed git and initialized a git repo in my project folder. I can commit and checkout without any issues through the command line, but for some reason the gui in qt creator claims my connection has timed out. Im running windows…. Any ideas? Error message(s): 21:15 Executing: git status –u Unable to obtain the status: Error: Git timed out Please let me know if any further clarification is needed! I've posted this on both qt forums, but no one seems to know how to solve the

How can i add custom build steps in Qt-Creator?

半腔热情 提交于 2019-12-10 23:58:09
问题 After build my app, i want copy it to specific directory (on Windows 7). Custom build step cmd.exe \c \k copy MyPlugin.dll ..\..\..\HostApp\Debug\plugins But I have error: Can't run process "cmd.exe \c \k copy MyPlugin.dll ..\..\..\HostApp\Debug\plugins" That's wrong? 回答1: One way to do it would be to change the build output directory in the .pro file. Something like CONFIG(debug, debug|release) { DESTDIR = C:/myApp/debug } else { DESTDIR = C:/myApp/release } Or in your particular case CONFIG

QT Creator , use gradle instead of ant give error

て烟熏妆下的殇ゞ 提交于 2019-12-10 23:57:08
问题 I am using QT Creator for Andorid apps. I have build my app with ant . That is ok . But If I check Use Gradle instead of Ant in Tools>Options>Android. That give me error like : C:\Qt\5.7\android_armv7\bin\androiddeployqt.exe" exited with code 14. Error while building/deploying project ArizaMobil (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.7.0)) When executing step "Build Android APK" How to correct this bug. I want to use gradle not ANT 来源: https://stackoverflow.com/questions/40626666/qt

Qt Creator split editor for source and header

别说谁变了你拦得住时间么 提交于 2019-12-10 22:11:32
问题 Qt Creator 4.2.1 The editor in this IDE can be split. It would be nice if header and source files will be load into those two after (for example) double clicking on project tree. Do you know any way, maybe a plugin for this? Now I am using F4 for switching between source and header. It also would be nice to see only one item in project tree for header-source pair - it would take less place. 来源: https://stackoverflow.com/questions/44384708/qt-creator-split-editor-for-source-and-header

Qt Creator Compiler Config Issue

对着背影说爱祢 提交于 2019-12-10 21:44:25
问题 I have just started to learn C++ and have come across Qt Creator. I have installed it alongside the built in MinGW Compiler. However I cannot get my projects to 'Build and Run'. I have attached some screenshots below, thank you for any help! The last image shows the two auto-detected kits which I can choose from. I tried creating my own kit and linked it with the compiler since the auto-detected kits don't have the compiler linked to it. Also, the following error shows when I try to 'Build

Qt Creator 100% CPU during code edit

吃可爱长大的小学妹 提交于 2019-12-10 21:41:43
问题 I have Qt Creator project. It uses boost and Point Cloud library . When I edit file that contains includes from these libraries, Qt Creator hangs about 30 seconds after each code channge (line added, variable type changed etc.). TaskManager shows 100% CPU on my two-core procesor. Please note: it is not during parsing or indexing, i.e. no green progress bar appears. Qt Creator is 2.8.0. 回答1: The only way I found is to disable boost and Eigen header parsing. To do it Exclude them from HEADERS

Full & complete uninstall QT Creator

女生的网名这么多〃 提交于 2019-12-10 20:52:06
问题 Question: How to uninstall QT Creator from Linux machine? I have a corrupted install on a Debian Jessie machine. I have tried reinstalling, fixing, etc. and with no luck. I was advised to uninstall completely, grab the newest version and reinstall. The problem is that I'm not sure how to do this and every time I try, QT keeps coming back with the same exact issues, I'm assuming because of some config files that are not getting deleted in the removal process. Running qmake --version gives me

File not found error for a QML file inside a Qt resource

我与影子孤独终老i 提交于 2019-12-10 19:23:36
问题 .pro # Add more folders to ship with the application, here folder_01.source = qml/qmlDeploy folder_01.target = qml DEPLOYMENTFOLDERS = folder_01 TEMPLATE += app QT += qml # The .cpp file which was generated for your project. Feel free to hack it. SOURCES += main.cpp # Please do not modify the following two lines. Required for deployment. include(qtquick2applicationviewer/qtquick2applicationviewer.pri) qtcAddDeployment() RESOURCES += \ resource.qrc main.cpp #include <QGuiApplication> #include

Qt Creator - How to write the UI?

耗尽温柔 提交于 2019-12-10 19:06:42
问题 I've just started working with Qt Creator and I want to write the UI. My question is: what is the best way to write it? By drag and drop from widget box or writing code? I've dragged some widgets and I saw that not all of build in QWidget like QIcon and QMultiLineEdit are in the widget box. How to add them? Thanks! 回答1: In my opinion, if you just started with Qt, it could be a good thing if you have the time to make a simple UI/Program that you all write manually, not using Qt Creator a