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. Qt Creator enable Beautifier
Qt 6.11 is out! See what's new in the release blog

Qt Creator enable Beautifier

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
8 Posts 3 Posters 6.5k Views 1 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.
  • D Offline
    D Offline
    dxsooo
    wrote on last edited by
    #1

    Hi, friends
    I use Qt Creator 4.3.1 in my Mac. But when I enable Beautifier by checking "About Plugins"->"Beautifier", nothing change after restarting Qt Creator.

    BTW, there is always a red bar in front of Beautifier option, does it matter ? Or how can I enable Beautifier?

    Thanks a lot

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Did you install at least one of the tools listed in the documentation page of the Beautifier plugin ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      D 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi and welcome to devnet,

        Did you install at least one of the tools listed in the documentation page of the Beautifier plugin ?

        D Offline
        D Offline
        dxsooo
        wrote on last edited by
        #3

        @SGaist Yes, I did. I installed AStyle and ClangFormat but nothing changed

        jsulmJ 1 Reply Last reply
        0
        • D dxsooo

          @SGaist Yes, I did. I installed AStyle and ClangFormat but nothing changed

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @dxsooo And did you configure it as described in the link @SGaist posted?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          D 1 Reply Last reply
          1
          • jsulmJ jsulm

            @dxsooo And did you configure it as described in the link @SGaist posted?

            D Offline
            D Offline
            dxsooo
            wrote on last edited by
            #5

            @jsulm I tried many times but when I restarted Qt Creator, the Beautifier checkbox would back to uncheck

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Can you start Qt Creator from the console with the QT_DEBUG_PLUGINS environment variable set to 1 ? It should show you more information about what is happening.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              1
              • D Offline
                D Offline
                dxsooo
                wrote on last edited by
                #7

                Oops, I thought I solved the problem. It seems that when I check the checkbox in "About Plugins", Qt Creator would write to a 'file' to set the specific plugin to be load at starting. As I install Qt Creator in my home path, the 'file' might have to be written by sudoers. So I run Qt Creator from console with sudo and checked Beautifier and it loaded Beautifier plugin successfully at restarting.

                Thanks @SGaist and @jsulm

                1 Reply Last reply
                1
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  You should rather clean the permissions from that file than run Qt Creator with sudo.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  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