Results 1 to 3 of 3

Thread: How to ignore the warnings but only show errors in QtCreator Issues after build?

  1. #1
    Join Date
    Sep 2009
    Location
    Surrey, BC, Canada
    Posts
    110
    Thanks
    1
    Thanked 2 Times in 1 Post
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default How to ignore the warnings but only show errors in QtCreator Issues after build?

    Hi, all:


    One naive question:

    I'm using QtCreator 3.0.1. I'm wondering if there is a way for QtCreator to show errors (in red) only, and have those warnings ignored?


    Cheers
    Pei
    Welcome to Vision Open
    http://www.visionopen.com

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How to ignore the warnings but only show errors in QtCreator Issues after build?

    Ignoring warnings is generally not a good idea: they exist for a reason.

    Qt Creator's Issues Pane has a tool button to hide warnings.

  3. #3
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: How to ignore the warnings but only show errors in QtCreator Issues after build?

    Best way to get rid of them is to fix them
    But if you can't do that (warnings come from third-party sources), another option is to use preprocessor directives to selectively disable warnings, like:
    Qt Code:
    1. // for gcc
    2. #pragma GCC diagnostic push
    3. #pragma GCC diagnostic ignored "-Wtype-limits"
    4. #pragma GCC diagnostic ignored "-Wreorder"
    5.  
    6. #include <dshow.h>
    7. #include <dvdmedia.h>
    8.  
    9. #pragma GCC diagnostic pop
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Replies: 1
    Last Post: 4th January 2013, 09:34
  2. Ignore SSL Errors
    By Oliver76 in forum Newbie
    Replies: 0
    Last Post: 27th April 2012, 16:16
  3. Qt Creator Qt SDK, Remote Compiler "Build Failed: Errors in build"
    By strahlex in forum Qt Tools
    Replies: 0
    Last Post: 10th August 2011, 17:59
  4. Rpath linking issues in qtcreator
    By Droplet in forum General Programming
    Replies: 1
    Last Post: 8th July 2011, 00:15
  5. Replies: 2
    Last Post: 15th April 2010, 21:29

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.