Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QImage on Clipboard, different behaviour on Windows and Mac
Qt 6.11 is out! See what's new in the release blog

QImage on Clipboard, different behaviour on Windows and Mac

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 861 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    efofex
    wrote on last edited by
    #1

    We are creating a QImage and setting the dotsPerMeterx and dotsPerMeterY values to produce a 300dpi image. This image is then placed onto the clipboard.

    On a Windows machine, when we paste this image into Word, Word allows for the dots per metre and the image comes into Word (and all other products we have tested on) correctly sized. It behaves as expected.

    On a Mac machine, when we paste an image into Word, Word pastes the image in 4.166666 times too large, which just happens to be the ratio between the Mac OS dpi of 72 and our desired 300dpi. Pasting the image into Pages also produces an image that is oversized so it seems to be something inherent to the Mac rather than just Word. It seems that, on the Mac, the dpi settings are being ignored.

    We have googled and experimented at length trying to work around this difference to no avail. ANY advice or insights would be most welcome!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What version of Qt are you using ?
      On which version of these platforms ?
      What are the graphics specs of each ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      E 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        What version of Qt are you using ?
        On which version of these platforms ?
        What are the graphics specs of each ?

        E Offline
        E Offline
        efofex
        wrote on last edited by
        #3

        @SGaist

        Thanks for taking the time to respond.

        QT5.10, but we have seen the behaviour on earlier QT releases. Windows 10 April 2018 Release, but also seen on earlier. MacOSX High Sierra but, again, seen on earlier releases.

        We have reports of this behaviour from all of our Mac customers (thousands of users) over a long period of time. We strongly doubt that it is related to any particular release or setup. We are also "fairly" confident that it is not particularly a QT issue. Our suspicion is that it is a MacOSX issue but more than happy to be proved wrong on that front.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Then can you provide a minimal compilable example that reproduces that behaviour ?

          In any case, I'd recommend taking a look at the bug reports system to see if there anything related to that matter.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved