[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] Potential bug in PyQt5 v5.11.3 or 5.12
From:       Sammy Barkowski <Barkowski () shinobi-mail ! de>
Date:       2019-01-18 21:59:09
Message-ID: adbe39d0-3a95-3a5f-eedc-a93f08805923 () shinobi-mail ! de
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hey there!

I have a problem with PyQt5 and QPrinter which seems to be related to
PyQt 5.11.3 or Qt 5.12. I'm running Manjaro Linux with python 3.7.2,
pyqt5-common 5.11.3, python-pyqt5 5.11.3 and Qt5 at v5.12.0.

I have a program which printed directly to a pdf-file in portrait- or
landscape-orientation using QPrinter. Everything worked perfectly with
PyQt5 v5.11.2 and Qt5 v5.11.
But now, whitout any code-changes, I always get documents in format
"us-letter" in portrait-orientation.

I have a minimal working-example and some pdf-files to illustrate this
here:https://www.dropbox.com/sh/feve6ubvylrko0x/AACC8W0hqEQWSu3t5zGdQI9ra?dl=0

(I had to remove names in two of the documents with LibreOffice Draw.
Thus, the specs say that they are generated by LibreOffice instead of
Qt5.12.)

In my example script, I let python print the printer-settings and they
are correct, but the generated output is wrong.

Can anybody confirm and reproduce this behaviour with my working
example? If this is not related to PyQt5, should I report a bug at Qt5.12?

Thank you!

Regards,

Sam Barkowski


[Attachment #5 (text/html)]

<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hey there!<br>
    <br>
    I have a problem with PyQt5 and QPrinter which seems to be related
    to PyQt 5.11.3 or Qt 5.12. I'm running Manjaro Linux with python
    3.7.2, pyqt5-common 5.11.3, python-pyqt5 5.11.3 and Qt5 at v5.12.0.<br>
    <br>
    I have a program which printed directly to a pdf-file in portrait-
    or landscape-orientation using QPrinter. Everything worked perfectly
    with PyQt5 v5.11.2 and Qt5 v5.11.<br>
    But now, whitout any code-changes, I always get documents in format
    "us-letter" in portrait-orientation.<br>
    <br>
    I have a minimal working-example and some pdf-files to illustrate
    this here:<span style="color: rgb(18, 17, 18); font-family:
      &quot;IBM Plex Sans&quot;, &quot;Noto Sans&quot;, Helvetica,
      Arial, sans-serif; font-size: 15px; font-style: normal;
      font-variant-ligatures: normal; font-variant-caps: normal;
      font-weight: 400; letter-spacing: normal; orphans: 2; text-align:
      start; text-indent: 0px; text-transform: none; white-space:
      normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width:
      0px; background-color: rgb(254, 254, 254); text-decoration-style:
      initial; text-decoration-color: initial; display: inline
      !important; float: none;"><span> </span></span><font
      color="#000000"><a
href="https://www.dropbox.com/sh/feve6ubvylrko0x/AACC8W0hqEQWSu3t5zGdQI9ra?dl=0"
        rel="nofollow noopener" style="background: rgb(254, 254, 254)
        none repeat scroll 0% 0%; text-decoration: none; cursor:
        pointer; overflow-wrap: break-word; font-family: &quot;IBM Plex
        Sans&quot;, &quot;Noto Sans&quot;, Helvetica, Arial, sans-serif;
        font-size: 15px; font-style: normal; font-variant-ligatures:
        normal; font-variant-caps: normal; font-weight: 400;
        letter-spacing: normal; text-align: start; text-indent: 0px;
        text-transform: none; white-space: normal; word-spacing: 0px;
        -webkit-text-stroke-width: 0px;" \
moz-do-not-send="true">https://www.dropbox.com/sh/feve6ubvylrko0x/AACC8W0hqEQWSu3t5zGdQI9ra?dl=0</a></font>
  <br>
    (I had to remove names in two of the documents with LibreOffice
    Draw. Thus, the specs say that they are generated by LibreOffice
    instead of Qt5.12.)<br>
    <br>
    In my example script, I let python print the printer-settings and
    they are correct, but the generated output is wrong.<br>
    <br>
    Can anybody confirm and reproduce this behaviour with my working
    example? If this is not related to PyQt5, should I report a bug at
    Qt5.12?<br>
    <br>
    Thank you!<br>
    <br>
    Regards,<br>
    <br>
    Sam Barkowski<br>
    <br class="Apple-interchange-newline">
  </body>
</html>


[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic