Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. The Lounge
  4. Usability of Qt Creator's Clang code model
QtWS25 Last Chance

Usability of Qt Creator's Clang code model

Scheduled Pinned Locked Moved The Lounge
5 Posts 4 Posters 1.9k Views
  • 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 J.Hilk

    @kshegunov said in What approach do you take for dialogs where an action is to be performed?:

    Perhaps, however that's how it should be done in the long run. If you only care about immediately getting it to work, then it doesn't really matter the approach you take, because it's going to end as patch, over patch, over patchwork. In the end it's going to be spaghetti all 'round, but that's how it is with no-planing-no-time-to-code-properly projects.

    tell me about it, I have a legacy project, I'm working on, in my free time. After the first rough cleanup, I ended up deleteing 10000 lines of code (not commets because there are none x) ) out of mainwindow.cpp, and it's still 15000 lines long...

    Takes QtCreators completer up to 20 secs, when you type ui->

    [EDIT: Replies forked to https://forum.qt.io/topic/96617/usability-of-qt-creator-s-clang-code-model -- JKSH]

    JonBJ Offline
    JonBJ Offline
    JonB
    wrote on last edited by JKSH
    #1

    [EDIT: Forked from https://forum.qt.io/topic/96353/ -- JKSH]

    @J.Hilk

    Takes QtCreators completer up to 20 secs, when you type ui->

    That I would find unacceptable! And even 15k lines presumably is not the full cause?

    J.HilkJ 1 Reply Last reply
    0
    • JonBJ JonB

      [EDIT: Forked from https://forum.qt.io/topic/96353/ -- JKSH]

      @J.Hilk

      Takes QtCreators completer up to 20 secs, when you type ui->

      That I would find unacceptable! And even 15k lines presumably is not the full cause?

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      @JonB said in What approach do you take for dialogs where an action is to be performed?:

      @J.Hilk

      Takes QtCreators completer up to 20 secs, when you type ui->

      That I would find unacceptable! And even 15k lines presumably is not the full cause?

      No, most of that is from the huge line count in combination with the new clang code model. That was introduced into QtCreator in one of the latest updates.

      Before that it was ok-ish since than I get 100% cpu load with clangbackend when I modify, simply typing is enough, that particular class/project.


      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.

      sierdzioS 1 Reply Last reply
      0
      • J.HilkJ J.Hilk

        @JonB said in What approach do you take for dialogs where an action is to be performed?:

        @J.Hilk

        Takes QtCreators completer up to 20 secs, when you type ui->

        That I would find unacceptable! And even 15k lines presumably is not the full cause?

        No, most of that is from the huge line count in combination with the new clang code model. That was introduced into QtCreator in one of the latest updates.

        Before that it was ok-ish since than I get 100% cpu load with clangbackend when I modify, simply typing is enough, that particular class/project.

        sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #3

        @J.Hilk said in What approach do you take for dialogs where an action is to be performed?:

        That was introduced into QtCreator in one of the latest updates.

        You can disable clang code model by disabling the plugin (Help->About plugins...), that will enable the old code model for you,

        (Z(:^

        J.HilkJ 1 Reply Last reply
        1
        • sierdzioS sierdzio

          @J.Hilk said in What approach do you take for dialogs where an action is to be performed?:

          That was introduced into QtCreator in one of the latest updates.

          You can disable clang code model by disabling the plugin (Help->About plugins...), that will enable the old code model for you,

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by J.Hilk
          #4

          hi @sierdzio
          true enough, but I actually like the new model, and most importantly, I'm to lazy to constantly switch back and forth in the settings x)

          Also this is really only an issue in that one (huge) class and only if its actually the current active project, IIRC.


          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
          • aha_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on last edited by
            #5

            I can only recommend you to comment and vote for QTCREATORBUG-21407. It also contains a workaround to start one Creator without Clang.

            Maybe we should also create a poll here in the forum to see how many users are affected by Clang problems and how they work around those.

            Regards

            Qt has to stay free or it will die.

            1 Reply Last reply
            0

            • Login

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