Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QtCreator Warning/Annotation Settings
Forum Updated to NodeBB v4.3 + New Features

QtCreator Warning/Annotation Settings

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
2 Posts 1 Posters 943 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J.HilkJ Offline
    J.HilkJ Offline
    J.Hilk
    Moderators
    wrote on last edited by
    #1

    Hi,

    does anyone know, how do modify the QtC settings, so that explicitly defined warning/annotations are no longer displayed?

    For my case, I would like to turn of all warnings related to M126 == and != may perform type coercion, use === or !== to avoid it

    Inside some QML files, I compare a c++ defined enum with an integer. This comparison only works with the == operator, the === always results in false.

    In c++ I would cast one of the two variables but I don't think there's an equivalent to it in QML/JS !?


    Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


    Q: What's that?
    A: It's blue light.
    Q: What does it do?
    A: It turns blue.

    1 Reply Last reply
    0
    • J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      actually there is a numeric casting operator in JS, the Unary plus(+)

      So I can use that and fall back to the === comparing

      I would still like to know how to disable the warning. if you know how to, please tell 😉


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved