Depending on your build system it’s either in your qmake project file(.pro, standard for new projects) or in one of the CMake files (CMakeLists.txt, used by KDE and several other projects).
Using .pro:
QMAKE_CXXFLAGS += -O2
Using CMake:
set( CMAKE_CXX_FLAGS "-g -Wall")
More Related Contents:
- Adding external library into Qt Creator project
- How to link opencv in QtCreator and use Qt library
- Qt: can’t find -lGL error
- Qt Creator – Project ERROR: Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild
- Configuring the GCC compiler switches in Qt, QtCreator, and QMake
- Making my own photo-mosaic app with Qt using C++
- How to avoid entering library’s source files while debugging in Qt Creator with gdb?
- class->methode1()->methode2() what does it mean? [closed]
- Why QFile(“./test”) work though [Class QFile] has no QFile(char* s) constructor
- Connecting overloaded signals and slots in Qt 5
- Sending a sequence of commands and wait for response
- How to use the Qt’s PIMPL idiom?
- the procedure entry point __gxx_personality_v0 could not be located
- Qt5 Static Build yields Failed to load platform plugin “windows”
- QtCore.QObject.connect in a loop only affects the last instance
- Qt signals (QueuedConnection and DirectConnection)
- How to leverage Qt to make a QObject method thread-safe?
- How to deploy a Qt application on Windows?
- How do I create a Window in different QT threads?
- Is there any way to building static Qt with static OpenSSL?
- Windows C++ compiler with full C++11 support (should work with Qt) [closed]
- Command working in terminal, but not via QProcess
- (Qt 5.4.1) This application failed to start because it could not find or load the Qt platform plugin “xcb”
- Paint a rect on qglwidget at specifit times
- Get HWND on windows with Qt5 (from WId)
- Recursively iterate over all the files in a directory and its subdirectories in Qt
- QScrollArea with dynamically changing contents
- Using emit vs calling a signal as if it’s a regular function in Qt
- How to create/read/write JSON files in Qt5
- Error: C2228: left of ” must have class/struct/union