I had a similar problem and I solved it by adding the following directive in the .pro file:
QMAKE_CXXFLAGS_RELEASE -= -g
Observe the _RELEASE suffix, otherwise don’t work.
More Related Contents:
- Undefined reference to vtable. Trying to compile a Qt project
- How can I use C++14 features when building qmake projects?
- In a templated derived class, why do I need to qualify base class member names with “this->” inside a member function?
- How to enable C++11 in Qt Creator?
- Qt – updating main window with second thread
- Qt: Best practice for a single instance app protection
- How to emit cross-thread signal in Qt?
- How to avoid Qt app.exec() blocking main thread
- undefined reference to template function [duplicate]
- how can I fully disable resizing a window including the resize icon when the mouse hovers the border?
- Qt Creator – Project ERROR: Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild
- Implementing Qt project through CMake
- Slot is being called multiple times every time a signal is emitted
- QPSQL driver not loaded Qt
- How to print to console when using Qt
- qt thread with movetothread
- qt 5.8 sql connection error:QMYSQL driver not loaded on windows 10
- //! [0] in Qt source code
- cannot convert ‘const char*’ to ‘LPCWSTR {aka const wchar_t*}’
- CopyFileEx with progress callback in Qt
- Qt – Determine absolute widget and cursor position
- Qt – remove all widgets from layout?
- Can Qt signals return a value?
- Changing DPI scaling size of display make Qt application’s font size get rendered bigger
- Adding signals/slots (QObject) to QGraphicsItem: performance hit?
- How to safely destruct a QThread?
- Using emit vs calling a signal as if it’s a regular function in Qt
- Convert std::string to QString
- How to create/read/write JSON files in Qt5
- Error: C2228: left of ” must have class/struct/union