Unsolved Qt Creator 5.0.3 - Editor: print toggled view of C++ header file
-
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?
-
@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.
-
@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.
-
Suggestion reported: https://bugreports.qt.io/browse/QTCREATORBUG-27922