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. problem with auto indent, qt creator bug?

problem with auto indent, qt creator bug?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 1 Posters 620 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.
  • M Offline
    M Offline
    M_Qt
    wrote on last edited by
    #1

    i just installed qt 6.6.0 and qt creator 11.0.3 (community), i uninstalled my old qt and creator before installing this one.

    but i have a problem with the automatic indenting feature. it's creating an alternating pattern for all my indents like this:

    private:
      int var1; //2 spaces
        int var2; //4 spaces
      int var3; //2 spaces
        int var4; //4 spaces
    

    my settings are:
    Edit > Preferences > C++ > Clangformat settings:
    Formatting mode: Indenting only.
    Current settings: Qt [built-in]

    these settings are supposed to create a consistent 4 space indent, and the preview window shows it working correctly, but in the ide itself it's broken and you get an alternating pattern.

    if i disable formatting with Formatting mode: Disable. it does stop alternating the indents.

    i tried deleting everything in %APPDATA%\QtProject to reset all the qt creator settings to defaults, but it didn't fix it.

    so is this a bug or how can i fix this?

    1 Reply Last reply
    0
    • Christian EhrlicherC Christian Ehrlicher moved this topic from General and Desktop on
    • M Offline
      M Offline
      M_Qt
      wrote on last edited by
      #2

      i think this is a bug so i just reported it on the jira. here is the bug track page for it:
      https://bugreports.qt.io/browse/QTCREATORBUG-29841

      if anyone else has this issue, i found a workaround to fix the problem, and it's listed on that page.

      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