Unsolved How can i print all the content of groupbox in any available printers?
-
SIr i am a newbie, can you guide me how to use your suggested solution?
-
@ioanna There is really nothing special:
if (printDialog.exec() == QDialog::Accepted) { QPrinter *printer = printDialog.printer(); painter.begin(printer);
-
It's the same the output is still like this.
https://drive.google.com/file/d/1WIe7IHVREm-9FTrBl5WAqZ3g-MgjaSj-/view?usp=sharing
-
@ioanna Then I guess your scaling is wrong.
-
@jsulm sir i have the same result, i forgot to tell you that during run time the ui was also cut exactly the same with the one being printed. I can't find a way to display what i have designed in my UI form since it is too long with a height of 1.3k.
-
@ioanna It looks like you did not put all your widgets in a layout. Do this first. https://doc.qt.io/qt-5/layout.html
-
@jsulm is it possible to zoom out to view all my design?
-
@ioanna Why don't you put your widgets into a layout instead?
You can't "zoom out" if part of your UI is not fitting into the window. -
@jsulm sir thanks. But i have a last question, can i stretch widgets to fit in A4 size?
-
@ioanna If your UI is showing correctly (using layouts) then you will need to scale it when printing, so it fits A4.