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 space between function name and opening parameter bracket
Forum Update on Monday, May 27th 2025

Qt Creator space between function name and opening parameter bracket

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
5 Posts 2 Posters 893 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.
  • P Offline
    P Offline
    Padlock
    wrote on last edited by
    #1

    Instead of "func(parameter)" I prefer "func (parameter)".
    Qt Creator supports this very nicely.
    A few months ago I started using a second machine, switching between both every now and then. The newer one squeezes the bracket right behind the function name ("func(parameter)") by default.
    I have compared every single setting I could find and even exported and imported the code style configurations, but to no avail.

    The newer machine always suggests "func(parameter)" while the old one suggests "func (parameter)". Not that it's a big deal but I can't bear it anymore that I'm too blind or dumb to find the setting that's responsible for this.

    Can someone please help with this?

    aha_1980A 1 Reply Last reply
    0
    • P Padlock

      Instead of "func(parameter)" I prefer "func (parameter)".
      Qt Creator supports this very nicely.
      A few months ago I started using a second machine, switching between both every now and then. The newer one squeezes the bracket right behind the function name ("func(parameter)") by default.
      I have compared every single setting I could find and even exported and imported the code style configurations, but to no avail.

      The newer machine always suggests "func(parameter)" while the old one suggests "func (parameter)". Not that it's a big deal but I can't bear it anymore that I'm too blind or dumb to find the setting that's responsible for this.

      Can someone please help with this?

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Padlock which Creator versions are that exactly? Do you have Clang Code Model or Beatyfier running on one of them?

      Regards

      Qt has to stay free or it will die.

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Padlock
        wrote on last edited by
        #3

        I usually always update when the software suggests it. On one machine it's 4.10.1, hence I reckon it's the same on the other.

        When I go to Tools/Options/C++/Code Model it says Clang-only checks for almost everything [built-in]. I can't see anything about a Beautifier.

        aha_1980A 1 Reply Last reply
        0
        • P Padlock

          I usually always update when the software suggests it. On one machine it's 4.10.1, hence I reckon it's the same on the other.

          When I go to Tools/Options/C++/Code Model it says Clang-only checks for almost everything [built-in]. I can't see anything about a Beautifier.

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi @Padlock,

          So you should check Help > About Plugins on both instances if there is something different.

          Not that it's a big deal but I can't bear it anymore that I'm too blind or dumb to find the setting that's responsible for this.

          If it helps you: I don't think there is a default setting for that. I think it must come from a plugin, likely the Clang Code Model.

          Are both Creators on the same platform?

          Regards

          Qt has to stay free or it will die.

          1 Reply Last reply
          0
          • P Offline
            P Offline
            Padlock
            wrote on last edited by
            #5

            After a bit over a year, I finally found the reason. :-)

            Tools -> Options -> Text Editor -> Completion

            The checkbox to tick is "Insert space after function name".

            1 Reply Last reply
            2

            • Login

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