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 5.0.3 - Editor: print toggled view of C++ header file
Forum Updated to NodeBB v4.3 + New Features

Qt Creator 5.0.3 - Editor: print toggled view of C++ header file

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

    I am using Qt Creator 5.0.3 on Linux Ubuntu 18.04 with Qt 5.15.5.

    I have several C++ header files with Doxygen comments which I would like to hide on printing. If I choose "Edit->Advanced->Toggle Fold All", I can selectively unfold the desired function declarations, leaving the Doxygen stuff folded and hidden. This is how I would like to print the file, too.

    However, when I try to print, either to PDF or to paper, all comment sections (Doxygen or otherwise) are expanded.

    Is there an option I have missed?

    JonBJ 1 Reply Last reply
    0
    • R Robert Hairgrove

      I am using Qt Creator 5.0.3 on Linux Ubuntu 18.04 with Qt 5.15.5.

      I have several C++ header files with Doxygen comments which I would like to hide on printing. If I choose "Edit->Advanced->Toggle Fold All", I can selectively unfold the desired function declarations, leaving the Doxygen stuff folded and hidden. This is how I would like to print the file, too.

      However, when I try to print, either to PDF or to paper, all comment sections (Doxygen or otherwise) are expanded.

      Is there an option I have missed?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @Robert-Hairgrove said in Qt Creator 5.0.3 - Editor: print toggled view of C++ header file:

      Is there an option I have missed?

      Unfortunately I do not think so. I believe the folding works visually but not at all when printing. There may be external tools which can print a C++ file respecting some/all folds (though how would it know what was folded if external?), but I don't think Creator supports this.

      R 1 Reply Last reply
      0
      • JonBJ JonB

        @Robert-Hairgrove said in Qt Creator 5.0.3 - Editor: print toggled view of C++ header file:

        Is there an option I have missed?

        Unfortunately I do not think so. I believe the folding works visually but not at all when printing. There may be external tools which can print a C++ file respecting some/all folds (though how would it know what was folded if external?), but I don't think Creator supports this.

        R Offline
        R Offline
        Robert Hairgrove
        wrote on last edited by
        #3

        @JonB Thanks!
        I know about some external tools, even using GCC in preprocessor mode. However, all of these require generation of an additional file which I would like to avoid.

        At the moment, I am using an online tool, copying & pasting the results into another editor (Geany, which can do syntax highlighting) and printing it from there.

        It seems like it would be an easy thing to implement. I will open this on the Qt bugs page as a suggestion.

        1 Reply Last reply
        1
        • R Offline
          R Offline
          Robert Hairgrove
          wrote on last edited by Robert Hairgrove
          #4

          Suggestion reported: https://bugreports.qt.io/browse/QTCREATORBUG-27922

          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