When printing an object with a non-solid fill brush (e.g. Qt::HorPattern), the print operation fails. The print job is queued up but no print output is generated.
Printing to a PDF works fine.
The attached sample project is based on https://doc-snapshots.qt.io/qt6-dev/qtwidgets-widgets-scribble-example.html. The modification is as follows under paintEvent and print()
The printing works fine when e.g. Qt::SolidPattern is used.