Qt Creator Print all
-
wrote on 20 Nov 2019, 07:29 last edited by
Hi everybody,
Is there any shortcut or extension that prints all codes in a Qt cmake project?Thanks.
-
Hi,
Do you mean print the content of all the files in the project ?
-
wrote on 20 Nov 2019, 07:51 last edited by
@SGaist said in Qt Creator Print all:
Do you mean print the content of all the files in the project?
Exactly.
Also, I have some problems with a single file print.
1- Qt Creator File & Print function doesn't print with editor style.
2- Qt Creator File & Print function doesn't print a file in which another opened a new window code editor when the file selected. Only main window code editor file is printing. -
@SGaist said in Qt Creator Print all:
Do you mean print the content of all the files in the project?
Exactly.
Also, I have some problems with a single file print.
1- Qt Creator File & Print function doesn't print with editor style.
2- Qt Creator File & Print function doesn't print a file in which another opened a new window code editor when the file selected. Only main window code editor file is printing.@CKurdu
Hi
If i print to a pdf, it looks exactly like in the editor. (pretty printed so to speak)
What do you see ? -
wrote on 20 Nov 2019, 13:22 last edited by CKurdu
-
I mean if you change the default style you can't print with changed editor style.
View in Qt Creator
Print view.
And If you are using a dual monitor and open a file in a new window and click this window and click file print. It does not print selected window it prints the main window.
@CKurdu
Ah, that way.
I never saw any tool that would print the paper as black (dark)
as that would use an insane amount of ink.
It does use the colors for the code though. -
I mean if you change the default style you can't print with changed editor style.
View in Qt Creator
Print view.
And If you are using a dual monitor and open a file in a new window and click this window and click file print. It does not print selected window it prints the main window.
-
wrote on 20 Nov 2019, 13:28 last edited by
Actually I am trying to print as pdf. But I just wanted to print all files with only one click and I saw some quirks also single file print and I wrote here.
-
Actually I am trying to print as pdf. But I just wanted to print all files with only one click and I saw some quirks also single file print and I wrote here.
- And If you are using a dual monitor and open a file in a new window and click this window and click file print. It does not print
selected window it prints the main window.
Well it works for me if i open in New window and press ctrl+p
it will print the window version.I think if you click on main window to get to the menu, u take the focus of the other window.
(yep that is why it print the main window one , if you use the menu ) - And If you are using a dual monitor and open a file in a new window and click this window and click file print. It does not print
-
wrote on 20 Nov 2019, 13:34 last edited by CKurdu
I am using vi mode so ctrl + p does not work for me and I think maybe when the click file and print in menu maybe print selected window not the main window. But I think active print window changes when I click the menu. So forget about it :).
Actually later I looked at Netbeans. In NetBeans when I click the file menu and print the last selected window is printing. I don't know what is the right way.
-
I am using vi mode so ctrl + p does not work for me and I think maybe when the click file and print in menu maybe print selected window not the main window. But I think active print window changes when I click the menu. So forget about it :).
Actually later I looked at Netbeans. In NetBeans when I click the file menu and print the last selected window is printing. I don't know what is the right way.
@CKurdu
Yeah at least that happens here if i do as you describe. You can rebind it the in options menu if you want.
But it sadly it does not solve the issue that it seems not to be able to print all of the files in one go. So
for a large project thats a lot of clicking :( -
I am using vi mode so ctrl + p does not work for me and I think maybe when the click file and print in menu maybe print selected window not the main window. But I think active print window changes when I click the menu. So forget about it :).
Actually later I looked at Netbeans. In NetBeans when I click the file menu and print the last selected window is printing. I don't know what is the right way.
@CKurdu said in Qt Creator Print all:
Actually later I looked at Netbeans. In NetBeans when I click the file menu and print last selected window is printing. I don't know what it is the correct way.
I would say Netbeans way is more logical as the way Creator does it, its confusing as you cant select the menu in other way. (with mouse)
I wonder if you close the main window code window and just have the other open. is it then smart enough to print it ?
-
@CKurdu said in Qt Creator Print all:
Actually later I looked at Netbeans. In NetBeans when I click the file menu and print last selected window is printing. I don't know what it is the correct way.
I would say Netbeans way is more logical as the way Creator does it, its confusing as you cant select the menu in other way. (with mouse)
I wonder if you close the main window code window and just have the other open. is it then smart enough to print it ?
-
@CKurdu
Np. I wish there was a hidden way to print all of the files but as far as i know, it cant.Can I ask why you wanted it as pdf ?
I mean you can already see it on screen like a pdf would so i did wonder :) -
wrote on 20 Nov 2019, 13:53 last edited by
I have a tablet and I am using it for code reading. But sometimes I entered the edit mode by mistake, so I found some trick to open read-only mode but I don't like traversing files in notepad++. Then I think maybe I can print all codes as pdf and I can read easily with adobe reader. I can also read the source codes in eReader.
-
I have a tablet and I am using it for code reading. But sometimes I entered the edit mode by mistake, so I found some trick to open read-only mode but I don't like traversing files in notepad++. Then I think maybe I can print all codes as pdf and I can read easily with adobe reader. I can also read the source codes in eReader.
@CKurdu
Ah. that makes sense. Not a bad plan. Thank you for clarifying.
1/16