qt-creator

Qt Creator: Undefined symbols for architecture x86_64

大憨熊 提交于 2020-01-20 07:01:36
问题 I have a program in Qt creator that compiles and runs fine in a Windows machine. But as soon as I tried to compile it in a Mac OS X (10.9) I received these messages: Undefined symbols for architecture x86_64: "std::__1::__basic_string_common<true>::__throw_length_error() const", referenced from: std::__1::enable_if<__is_forward_iterator<char*>::value, void>::type std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::__init<char*>(char*, char*) in

QtCreator debugger: step into std::function

喜夏-厌秋 提交于 2020-01-16 05:28:04
问题 I am unable to find any tools within QtCreator that would allow me to debug std::function calls and determine what's happening inside. Is it possible to "step into" std::function ? In case it is possible, how do I set it up, because a strait-forward approach (i.e push "step into" button when paused on the corresponding std::function execution call) does not work. 来源: https://stackoverflow.com/questions/51589796/qtcreator-debugger-step-into-stdfunction

Qt creator won't run app after compiling

房东的猫 提交于 2020-01-14 19:04:46
问题 I checked out a Qt project hosted on google code with SVN to a local folder. When I opened it on Qt Creator, it managed to compile the project, but when it tried to run the compiled program, an error message came up on the application output: The process could not be started! What is wrong? 回答1: I solved this problem by going to projects>run settings and manually specifying the executable. Found this solution by googling, don't know if it's the proper way to fix this. 回答2: I assume you tried

Qt creator won't run app after compiling

匆匆过客 提交于 2020-01-14 19:04:07
问题 I checked out a Qt project hosted on google code with SVN to a local folder. When I opened it on Qt Creator, it managed to compile the project, but when it tried to run the compiled program, an error message came up on the application output: The process could not be started! What is wrong? 回答1: I solved this problem by going to projects>run settings and manually specifying the executable. Found this solution by googling, don't know if it's the proper way to fix this. 回答2: I assume you tried

Qt creator high cpu usage in editor

房东的猫 提交于 2020-01-14 13:48:07
问题 Even in simple applications (as simple as QWidgets app made from wizard) qtcreator.exe spikes to 50% (1 core) every other time when editing code. Seems like it parses the whole project even after several new characters where typed in, making it unresponsive and to some point unusable. This gets worse with project size, so after adding several cpp/h modules with a dozen of classes it makes people nervous. The same project works flawlessly in Qt under debian, su I suppose it's connected to

How can the install path be set for a qt project

时光毁灭记忆、已成空白 提交于 2020-01-14 09:00:55
问题 I'm looking for the equivalent to ./configure --prefix= for qmake. Basically, I want to override the default install/deployment directory. How is this specified with command line qmake? I also use QtCreator to build a lot of my gui projects, and I'd like to know how to do the same thing while building inside of QtCreator. Is there a variable that I can manipulate in the .pro files to do this, or do I change my project settings? Thanks! 回答1: For me, it seems that qmake PREFIX=/usr/local doesn

Qt Creator/GDB - Debugging session ends unexpectedly

匆匆过客 提交于 2020-01-13 14:58:06
问题 1. The symptoms Debugging sessions in Qt Creator terminate unexpectedly, in a random fashion (i.e., sometimes they terminate normally), with one of the following errors: PC register is not available (the most common error, usually with “Internal error: pc 0×0 in read in psymtab, but not in symtab”) SIGSEV SIGILL The first sign that this is going to happen is when stepping on a line of my code takes me to an assembler window, into NTDLL (usually, ntdll!LdrFindResource_U+60953 ). I’m running Qt

How to create a folder or a subdirectory for a project in QtCreator? [duplicate]

一笑奈何 提交于 2020-01-13 09:37:26
问题 This question already has answers here : How to create a subdirectory for a project QtCreator? (9 answers) Closed 4 years ago . I want to create subdirectories and folders to organise my code in Qt. I tried to manually create the directory in my shell / explorer, but Qt does not recognize it. 回答1: Prior to QT Creator 3.1.x, you can right-click on your project -> " add new... " and change the path to the folder you want. Be careful the folder must exist, Qt will not create it for you. Qt takes

Can't debug in QT creator with cmake project

淺唱寂寞╮ 提交于 2020-01-12 18:36:30
问题 I created a new Plain C++ Project with CMake Build. When I set a breakpoint and press the Debug Button I get this message: This does not seem to be a "Debug" build. Setting breakpoints by file name and line number may fail. Section .debug_info: Not found. Section .debug_abbrev: Not found. Section .debug_line: Not found. Section .debug_str: Not found. Section .debug_loc: Not found. Section .debug_range: Not found. Section .gdb_index: Not found. Section .note.gnu.build-id: Found. Section .gnu

Can __FILE__ and __LINE__ be made linkable when printed to Qt Creator's debug console?

北战南征 提交于 2020-01-12 14:41:48
问题 Header: #define TRACE_ERROR(s) \ { ... char TraceBuffer[512]; sprintf(TraceBuffer, "%s\t(%s:%d)", s, __FILE__, __LINE__); DebugErrTrace(TraceBuffer); ... } Implementation: void DebugErrTrace(char *String, ...) { ... qDebug() << String; } The above spits out a line of debug trace, which might look something like ERROR File Missing! (..\trunk\Common\FileManager.cpp:102) in Qt Creator's debug console. I've noticed that Qt's own error messages e.g. Object::connect: No such slot cClass::Method