qt-creator

Qt Creator - how to see the code of the designer?

风格不统一 提交于 2020-01-06 03:59:38
问题 I'm using Qt Creator . I'm using the signals and slots editor, and I want to see the code it generates. How can I see the code? Thanks! 回答1: Let's say you have in Qt Creator a form file called widget.ui . Once you've compiled your project, you'll find in your project folder a filed called ui_widget.h . If you open it, you'll see the code generated by the uic tool. 回答2: when you use qt creater, this one is going to create a file with the name of your project, in my case it is called "build

where is the generated code of “Qt Signals/Slots editor”?

坚强是说给别人听的谎言 提交于 2020-01-05 05:53:47
问题 QtCreator 2.7.2 ,I use the Qt Creator design a connection and i can see it in the file *.ui ,but I can't find it in the generated file ui_*.h after build, where is it ? I'm curious. 回答1: It's there, usually by the end of setupUi method. Just look better. For instance, this chunk in the .ui <connections> <connection> <sender>checkBox</sender> <signal>toggled(bool)</signal> <receiver>checkBox_2</receiver> <slot>setChecked(bool)</slot> </connection> </connections> Results in QObject::connect

getting lnk2019 error when compile a program using qt creator and eigen library

半世苍凉 提交于 2020-01-05 05:27:10
问题 I try to compile a project in qt and after i link the necessary libs i ghet the fallowing linking error : labelbox.obj:-1: error: LNK2019: unresolved external symbol "public: void __thiscall LabelImage::setAxis(class Eigen::Matrix<double,4,4,0,4,4>)" (?setAxis@LabelImage@@QAEXV?$Matrix@N$03$03$0A@$03$03@Eigen@@@Z) referenced in function "public: void __thiscall ImageView::setRotMat(class Eigen::Matrix<double,4,4,0,4,4> &)" (?setRotMat@ImageView@@QAEXAAV?$Matrix@N$03$03$0A@$03$03@Eigen@@@Z) If

Is a configuration of clang QtC 4.7 checks per config file possible?

不想你离开。 提交于 2020-01-05 04:19:13
问题 QtC 4.7 offers the inline CLANG code checks, as shown in the screenshots. I can configure those from options/C++ . But I wonder if I can have a config file which I can commit (git) so everyone in the team is using the same checks. Is that possible (e.g. similar to Artistic style where I can use a file or the config in QtC)? The checks I mean: Configure in C++ options, can I do the same in a config file? --- Edit --- I could use the annotations like [[clang::fallthrough]] which silence the

Copy file to destination directory in Qt Creator

隐身守侯 提交于 2020-01-05 04:01:05
问题 I want to copy a data file from a directory in my source tree to the directory of the linked app so it's available at runtime, on Windows only. There appear to be two suggested techniques: use a post target dependency to issue a DOS copy command (Including resource files in Qt Creator build directory) or use an install step (Copy a file to the build directory after compiling project with Qt), but I cannot make either work in the way I would like. The former requires me to use qmake path

Copy file to destination directory in Qt Creator

烂漫一生 提交于 2020-01-05 04:00:57
问题 I want to copy a data file from a directory in my source tree to the directory of the linked app so it's available at runtime, on Windows only. There appear to be two suggested techniques: use a post target dependency to issue a DOS copy command (Including resource files in Qt Creator build directory) or use an install step (Copy a file to the build directory after compiling project with Qt), but I cannot make either work in the way I would like. The former requires me to use qmake path

Qt Creator doesn't find my Android device

隐身守侯 提交于 2020-01-04 18:30:13
问题 The steps I've taken so far are: Downloaded qt-opensource-windows-x86-android-5.3.0-RC.exe from http://download.qt-project.org/development_releases/qt/5.3/5.3.0-rc/ and installed it. Downloaded the Android SDK, etc., according to Creator's Android Configurations dialog: Ran my application. A dialog came up saying Device not found , and suggesting that I run adb devices to see if the device is indeed available. I ran that, but no devices were connected. 回答1: After reading this blog post, I

The process qmake.exe exited with code 2 - first time with Qt and Qt Creator

二次信任 提交于 2020-01-04 07:10:50
问题 Downloaded Qt and Qt Creator. In Qt Creator I can run example programs. Created new project - Qt empty project. Added new cpp-file with code example from Qt site - first one. When I press "Run", "Build" or "Rebuild" I've got this output 01:41:24: Running steps for project First... 01:41:24: Starting: "C:\Qt\4.8.4\bin\qmake.exe" "C:\Documents and Settings\Олексій\Qt Projects\First\First.pro" -r -spec win32-msvc2008 "CONFIG+=declarative_debug" Cannot find file: c:\Documents and Settings\Олексій

Why are comments that start with “//!” colored blue in Qt Creator?

为君一笑 提交于 2020-01-04 02:12:27
问题 Qt Creator normally colors comments green, but I saw blue colored comments in the Qt Examples, and Qt Creator seems to color every comment that starts with //! in blue. Here's an example screenshot: Is this some convention? What does the blue signify? 回答1: It's a Doxygen comment. There are multiple styles: Qt block comment: /*! ... text ... */ Qt one-line comment: //! ... one line of text ... JavaDoc block comment: /** * ... text ... */ JavaDoc one-line comment: /// ... one line of text ...

setting up OpenCV 2.4.2 with Qt Creator

こ雲淡風輕ζ 提交于 2020-01-03 18:01:31
问题 I tried two methods to use opencv with qt creator first one using Mingw where the dlls and .dll.a files are already downloaded with the opencv library and I just add reference to the .dll.a files in the .pro file as follow INCLUDEPATH += D:\\OpenCV\\opencv\\build\\include LIBS += D:\\OpenCV\\opencv\\build\\x64\\mingw\\lib\\libopencv_calib3d242.dll.a LIBS += D:\\OpenCV\\opencv\\build\\x64\\mingw\\lib\\libopencv_contrib242.dll.a LIBS += D:\\OpenCV\\opencv\\build\\x64\\mingw\\lib\\libopencv