Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Code folding with #pragma region "name"

Code folding with #pragma region "name"

Scheduled Pinned Locked Moved Solved General and Desktop
code regionsqt editorpreprocessor
3 Posts 2 Posters 521 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.
  • S Offline
    S Offline
    Saviz
    wrote on 24 Dec 2022, 23:33 last edited by
    #1

    Hello everyone. I hope you are all doing well.

    I am new to the Qt framework and environment.

    I was wondering if there is any preprocessor directive similar to #pragma region "name" for creating custom code folding regions in the Qt Editor?

    I am fully aware of the "Display folding markers" settings option found under Edit->Preferences->TextEditor. Unfortunately, this option only creates folding for blocks in the code. But, I want to be able to create my own regions. Is there any solution?

    J 1 Reply Last reply 25 Dec 2022, 08:46
    0
    • S Saviz
      24 Dec 2022, 23:33

      Hello everyone. I hope you are all doing well.

      I am new to the Qt framework and environment.

      I was wondering if there is any preprocessor directive similar to #pragma region "name" for creating custom code folding regions in the Qt Editor?

      I am fully aware of the "Display folding markers" settings option found under Edit->Preferences->TextEditor. Unfortunately, this option only creates folding for blocks in the code. But, I want to be able to create my own regions. Is there any solution?

      J Offline
      J Offline
      JonB
      wrote on 25 Dec 2022, 08:46 last edited by
      #2

      @Saviz
      No, sadly, there is not. At least for all the Qt Creator version I have used. Sorely missing :(

      S 1 Reply Last reply 25 Dec 2022, 18:32
      2
      • J JonB
        25 Dec 2022, 08:46

        @Saviz
        No, sadly, there is not. At least for all the Qt Creator version I have used. Sorely missing :(

        S Offline
        S Offline
        Saviz
        wrote on 25 Dec 2022, 18:32 last edited by
        #3

        @JonB Thank you very much. At least now I know there is not a way :)

        1 Reply Last reply
        0

        1/3

        24 Dec 2022, 23:33

        • Login

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