Skip to content

KDReports 2.3.0

Latest
Compare
Choose a tag to compare
@winterz winterz released this 11 Sep 19:06
· 9 commits to kdreports-2.2 since this release

What is new in KD Reports 2.3

Bugfixes:

  • Fix infinite loop and other issues with Qt 6.7 due to QTextFormat behavior change
  • Preserve resolution in watermark image (issue #42)
  • Fix right-aligned tabs not working when setting paragraphs margins
  • Fix blurry rendering in hi-dpi (DPR != 1) situations (issue #58)
  • Fix result codes set by KDReportsPreviewDialog. The Result enum promised values that weren't actually set because accept() overwrote them (issue #59)
  • Fix tables losing their cell borders after upgrading to Qt 6.8

New features:

  • AutoTableElement: add customization functions for header styling, see setHorizontalHeaderFormatFunction and setVerticalHeaderFormatFunction, and their use in the PriceList example.
  • Cell: add setCellFormatFunction for customizing cell borders and padding individually, see example in ReferenceReport.
  • Cell: add setVerticalAlignment, for vertical centering (or top alignment) of text in table cells, e.g. when using different font sizes in the same row.
  • AbstractTablElement: setColumnsConstraints now supports columns with no constraints (just pass {}). The point is to specify a constraint for a column further right than the one without a constraint.
  • TableElement: add rowCount() and columnCount(). These methods can be useful in a genericfunction that takes a TableElement and changes background colors on alternate rows, for instance.
  • Report: add setProgressDialogEnabled(false) to disable the progress dialog when printingor when exporting to PDF. This can be useful when the application generates multiple documents and has its own progress dialog for the overall operation, or prefers embedding a progressbar.