Question
Can QtCreator be configured hide warnings in the editor window while still showing the warning icon on the left side?
Description
QtCreator 4.5 with Clang Code Model enabled shows warnings in 2 locations:
inlined in the code editor
in a pop-up appearing when hovering over an icon on the left side
In my opinion the former clutters GUI and the latter is both sufficient and less intrusive.
Here's an example:
I looked at QtCreator options including Code Model options and could not find any setting for that.
For Qt Creator 4.7.0, you have to go:
Tools > Options > Text Editor > Display
And then uncheck the 'Line annotations' option
Options > Text Editor > Display > Annotation next to line.
It helps me in Qt Creator 4.4.1.
Related
After upgrading from Eclipse Neon to Oxygen I noticed that I can no longer navigate around the code by clicking on definitions while holding the Ctrl key down. The indexer itself works fine, and I can still jump around by pressing F3 or using the context menu.
I am using Eclipse CDT with C++.
The following screenshot proves that the feature is enabled:
What am I missing?
You're probably running into bug 517610. Note the following workaround from the bug:
To work around the problem, you can disable the Change Log hyperlink
by going to Window > Preferences > General > Editors > Text Editors >
Hyperlinking, then untick "Changelog Detector".
The bug fix is scheduled for Oxygen.1, which will be released on September 27th 2017. Alternatively, you can update to the latest development build (6.1.0) of Linux Tools (which is the component that contained the bug) via the update site http://download.eclipse.org/linuxtools/update/.
In addition to the first solution, increase the "Maximum number of tokens per translation unit" in your Eclipse.
I'm new to Xcode. I am using version 8.3.3 on MacOS 10.12.5 (Sierra) to develop an experimental command line application. I want to set up a version number for the application. According to instructions in Apple documentation and many other places I should be able to do this under the General tab for the project. However, under the General tab Xcode does not seem to be able to find a plist file and instead
displays a 'Choose info.plist File' button.
When I click the click the button Xcode displays a selection dialog containing a project icon, but no sign of an info.plist file and no obvious way to navigate to or create one.
I have tried the technique described at Youtube (v=gYh4_80jHDk: sorry -- can't post it as a link as I'm also new to Stack Overflow!) but to no avail. It just gives me another 'Choose info.plist File' button.
I expect I'm missing something obvious, but it's not obvious to me. I'd be grateful for any help!
Many thanks
I am aware about how to add compiler in Qt Creator. However my Qt always chooses MSVC compiler. How to set MinGW (built-in or external) instead of MSVC?
Couldn't find any post which can help a newbie to know how to change the compiler of desired preference. My current system is Windows, however information on Linux (g++ <--> clang++) is also welcome.
Following is the way with Qt 5.9:
While configuring a new project, select only those compilers/kits which are required;
For 64-bit system, get the latest MinGW and install in a suitable path; While installing MinGW64, you may select "posix threads", and not "win32 threads" to allow threading related libraries
Go to Tools > Options > Build & Run > Compilers and add a manual C++ compiler. Choose the path of where you installed C:/MinGW64/bin/g++.exe (name it something like "MinGW64"); Similarly you may add C compiler as well with C:/MinGW64/bin/gcc.exe; Click 'Apply'
In the same dialog box, select the Debuggers tab and similarly add C:/MinGW64/bin/gdb.exe (name it like "MinGW64 Debugger); Click 'Apply'
In the same dialog box, select the Qt Versions and add a new Kit with MinGW64 like name; However I couldn't find an appropriate qmake.exe for it; Hence, I decided to use the same qmake.exe, which came with built-in 32 bit MinGW within Qt package (not sure about this as of now)
In the same dialog box, now select the Kits tab and add a new Manual kit; You may also follow the way the default MinGW32 bit compiler is configured; Configure Compiler, Debugger and Qt Version for this newly named kit; Click 'Ok'
On the left pan of Qt creator, click on "Projects" tab, and go to "Build & Run" option there; To avoid confusion, you may disable all the kits which are not required; Just keep the relevant kit and click "Build" with either "Debug" or "Release" setting
I think I accidentally changed some settings in my MSVC 2010 compiler and now I can't find the compile and execute option. Also when I hit the tab button for indentation an arrow(->) appears. I wonder whats wrong??
Use the tools menu "Import and Export Settings" then select "Reset all Settings" to reset the settings back to default.
To reset editor blunder, just hit Ctrl+Shift+8, from inside the text editor itself. This is toggle-able option, which can be used to see white spaces. Sometimes useful!
What are the steps involved in integrating Clang within NetBeans? I would like to also see the Clang error and warning messages from within NetBeans. This will be used mainly for developing in C.
NetBeans 7.2 has supported Clang natively.
Just open up Options Window, switch to C/C++ section, and add a new Tool Collection. Type: /usr/bin in Base Directory, and select "CLang" in the combo box.
I have been using Clang to build my project, and NetBeans works with Clang perfectly.
Here is a link to the bug report for clang support in netbeans at netbeans.org. Track this bug for official netbeans support.
If you have downloaded and installed the C/C++ plug-in for NetBeans 8+ following the instructions on this page:
https://netbeans.org/community/releases/80/cpp-setup-instructions.html
you have a C/C++ item in the upper menu of the Tools > Options panel. 1.) Click it.
2.) Now under the list called "Tool Collection" (on the left) click the left button "Add".
3.) In the window that opens, enter the "/usr/bin" as a base directory.
4.) If you have a CLang compiler installed right the "Tool Collection Family" drop-down menu will show a CLang collection. Choose it.
5.) Click "OK" in the pop-up window, then click "OK" in the "Options" panel/window.
Enjoy.