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 10.0.0 not following indent settings
Forum Updated to NodeBB v4.3 + New Features

Qt Creator 10.0.0 not following indent settings

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
4 Posts 2 Posters 1.2k 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.
  • F Offline
    F Offline
    flatland3r
    wrote on last edited by
    #1

    I'm attempting to change the default tab and indent size settings from the Qt default 4 and 4 to 2 and 2. I go to Edit -> Preferences -> C++ -> Current Settings and copy Qt [built-in], then change tab and indent size under the General tab to 2. I click Apply then OK, but my tabs and indents are still 4 spaces wide.

    I've tried restarting Qt Creator to no avail. I've verified that the settings match what I had set previously in Qt Creator 5.0.3 that do work.

    Any advice on how to further troubleshoot?

    sierdzioS 2 Replies Last reply
    0
    • F flatland3r

      I'm attempting to change the default tab and indent size settings from the Qt default 4 and 4 to 2 and 2. I go to Edit -> Preferences -> C++ -> Current Settings and copy Qt [built-in], then change tab and indent size under the General tab to 2. I click Apply then OK, but my tabs and indents are still 4 spaces wide.

      I've tried restarting Qt Creator to no avail. I've verified that the settings match what I had set previously in Qt Creator 5.0.3 that do work.

      Any advice on how to further troubleshoot?

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

      @flatland3r update Qt Creator to the newest version. But also, go to Preferences -> Text Editor -> Behavior -> Tabs And Indentation and change the settings there, it should help.

      (Z(:^

      F 1 Reply Last reply
      1
      • sierdzioS sierdzio

        @flatland3r update Qt Creator to the newest version. But also, go to Preferences -> Text Editor -> Behavior -> Tabs And Indentation and change the settings there, it should help.

        F Offline
        F Offline
        flatland3r
        wrote on last edited by flatland3r
        #3

        @sierdzio Thanks for the reply. I went ahead and updated to 12.0.1 and verified that Preferences -> Text Editor -> Behavior -> Tabs and Indentation is also set to:

        Spaces Only
        Tab size: 2
        Indent size: 2
        Align continuation lines: With Spaces

        I also tried changing these settings under Qt Quick -> Code Style. Anything else I can try?

        1 Reply Last reply
        0
        • F flatland3r

          I'm attempting to change the default tab and indent size settings from the Qt default 4 and 4 to 2 and 2. I go to Edit -> Preferences -> C++ -> Current Settings and copy Qt [built-in], then change tab and indent size under the General tab to 2. I click Apply then OK, but my tabs and indents are still 4 spaces wide.

          I've tried restarting Qt Creator to no avail. I've verified that the settings match what I had set previously in Qt Creator 5.0.3 that do work.

          Any advice on how to further troubleshoot?

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

          @flatland3r said in Qt Creator 10.0.0 not following indent settings:

          go to Edit -> Preferences -> C++ -> Current Settings and copy Qt [built-in],

          just to double check: this new copied profile is selected as active, right?

          I don't have other ideas, sorry.

          (Z(:^

          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