Below are our suggested configuration settings for Qt Creator. You are not required to adopt these settings, but we recommend them for a more pleasant experience.
Access the preferences/settings for Qt Creator from the top menu bar:
- on Mac, menu item is
Qt Creator -> Preferences... - on Windows, menu item is
Edit -> Preferences... - on Linux, menu item is
Tools -> Options...
Build & Run pane
- On
Generaltab:-
Save all files before buildCheck this box to automatically save your code files before compiling or running the project.
-
Stop applications before building= AllChoose
Allto end the running program when re-building.
-
- On
Compile Outputtab:-
Open Compile Output when buildingCheck this box to display information about the build process in the bottom pane of the Qt window.
-
- On
Application Outputtab:-
Clear old output on a new runCheck this box to clear previous output when re-running.
-
Debugger pane
-
Debugger font size follows main editorCheck this box to have your debugger font size match the font size of the text editor.
-
Switch to previous mode on debugger exitCheck this box to close unneeded debugger panes when the debugger is finished running.
Disable style analyzer
Qt Creator uses a code analyzer to check your code for stylistic issues and conformance to industry standard "best practices". While some of this guidance might be valuable, the default settings are too nitpicky and the error messages are alarmist and obtuse. We think students are best served by disabling this feature altogether to eliminate the unhelpful chatter. When the analyzer is disabled, your code will still get proper highlights for build warnings and errors, but this removes all the squawking about stylistic quibbles.
-
Analyze open files(on Analyzer pane)Make sure this checkbox is unchecked.
-
Use clangd(on C++ pane)Make sure this checkbox is unchecked.
Click Ok to save your settings.