Skip to content
QtWS25 Last Chance
  • 0 Votes
    3 Posts
    1k Views
    Settings for printer: _printer.setResolution(QPrinter::PrinterResolution); QPageSize pageSize(QPageSize::A4); _printer.setPageSize(pageSize); QPagedPaintDevice::Margins margins; margins.top = 11.5; margins.left = 12.6; margins.right = 11.5; margins.bottom = 11.8; _printer.setMargins (margins); _printer.setOutputFileName("output.pdf"); _printer.setOutputFormat(QPrinter::PdfFormat); Text Document QFont font; font.setPointSize(5); font.setFamily("Calibri"); font.setLetterSpacing(QFont::PercentageSpacing,100); doc.setDefaultFont(font); doc.setPageSize(_printer.pageSizeMM()); QTextCursor cursor(&doc); QTextBlockFormat block_format_title; block_format_title.setAlignment(Qt::AlignCenter); cursor.insertBlock(block_format_title); cursor.insertHtml(QString("<p><b>%1</b></p><br><br>").arg(file_theme.title)); QTextBlockFormat block_format; block_format.setAlignment(Qt::AlignLeft); cursor.insertBlock(block_format); cursor.insertHtml(QString("<p><b>Imię i nazwisko:</b> %1<br>").arg(file_theme.childName)); cursor.insertHtml(QString("<p><b>Terapeuta prowadzący:</b> %1<br>").arg(file_theme.therapistName)); cursor.insertHtml("<br>"); cursor.insertHtml(QString(HTML Text)); doc.print(&_printer); On yellow incorrect spaces between letters in word. [image: 6e3316c6-337b-4c5c-af91-f465c41ca4c1.JPG]
  • 1 Votes
    12 Posts
    5k Views
    I wanted to report that when I use 5.9.4 MinGW the color emoji shows up as BW but when I use 5.9.4 MSVC2017 the color emoji shows up as color. Is there anything I can do to get MinGW to work? Same in 5.11. I'm using a blank project with a single color emoji in the screen. [image: 63ce6362-3bc4-4834-8319-3e6dec873d28.png] If I compile with MSVC2017 then it shows up in color.
  • 0 Votes
    2 Posts
    1k Views
    I found a workaround: Define environment variable within Qt application startup context: QML_USE_GLYPHCACHE_WORKAROUND = 1 Look on this topic: https://forum.qt.io/topic/39803/font-rendering-bug-on-some-android-devices/7