I've created the bundle using the macdeployqt utility, that should have added everything needed.
In fact, if I have a look at the bundle contents I see that in the Frameworks folder there are:
QtCore.framework
QtGui.framework
QtPrintSupport.framework
QtWidgets.framework
Moreover the issue must not be related to the addition of frameworks to the bundle, since the bundle before being modified using macdeployqt utility already starts.
This means that it is able to find on my mac Air the needed libraries for its basic functions, such as creating the window, since in this PC Qt is installed.
The macdeployqt utility, I think, should be needed only to run the application in PCs in which Qt is not installed.
So, the reason for which printing on PDF does not work is mysterious for me.
I can add that if I use the code similar of my post, but without row 25, printing on the physical printer on my mac (instead of the PDF) is performed correctly.
Regards
Bookmarks