Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Custom Compilerwarnings in QML
Forum Updated to NodeBB v4.3 + New Features

Custom Compilerwarnings in QML

Scheduled Pinned Locked Moved Solved QML and Qt Quick
5 Posts 3 Posters 945 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.
  • X Offline
    X Offline
    xela
    wrote on last edited by
    #1

    Hello Experts,

    Iám working on a big Projekt using QML and QtQuick.
    On other Projects and other Languages, I had the possibillity to throw custom compiler warnings to mark some code for refactoring, depreciated, untested etc. Compiling the code, this warnings appears.
    Is there any possibility to do this also in QML?

    raven-worxR 1 Reply Last reply
    0
    • X xela

      Hello Experts,

      Iám working on a big Projekt using QML and QtQuick.
      On other Projects and other Languages, I had the possibillity to throw custom compiler warnings to mark some code for refactoring, depreciated, untested etc. Compiling the code, this warnings appears.
      Is there any possibility to do this also in QML?

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @xela
      not that i am aware of.
      Also doesn't make much sense, since in general QML is not compiled (to be correct it is compiled when it is needed - JIT)

      You can use console.warning() to throw a runtime message though.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1
      • X Offline
        X Offline
        xela
        wrote on last edited by
        #3

        In this case, it really do not make sense.
        So I have to stay with my solution. I marked with Comments like "//@Refactoring needed" and have to search the whole qml files for this phrases.
        Not the best but at the moment under this circumstances the best one for me...

        Anyway, thank you"!

        1 Reply Last reply
        0
        • GrecKoG Offline
          GrecKoG Offline
          GrecKo
          Qt Champions 2018
          wrote on last edited by GrecKo
          #4

          Qt Creator can show you comments beginning with TODO, FIXME, NOTE, BUG or WARNING in the "To-Do Entries" bottom panel :
          Qt Creator To-Do Entries

          X 1 Reply Last reply
          1
          • GrecKoG GrecKo

            Qt Creator can show you comments beginning with TODO, FIXME, NOTE, BUG or WARNING in the "To-Do Entries" bottom panel :
            Qt Creator To-Do Entries

            X Offline
            X Offline
            xela
            wrote on last edited by xela
            #5

            @GrecKo Exactly what I needed. I hat to activate this ToDo under Help->Plugins.
            This helps me so much, thank you very much and have a great day!

            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