Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-32975

QCocoaWindow can return 0 devicePixelRatio

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: 5.1.0
    • Fix Version/s: 5.2.0
    • Component/s: Core: Plugins
    • Labels:
      None
    • Environment:
      OSX 10.8

      Description

      For example, while setting Qt::FramelessBorderHint on the QWindow. This can cause the qquickshadereffectsource to get stuck:

          // Crate large textures on high-dpi displays.
          if (sourceItem())
              textureSize *= d->window->devicePixelRatio();
      
          const QSize minTextureSize = d->sceneGraphContext()->minimumFBOSize();
          // Keep power-of-two by doubling the size.
          while (textureSize.width() < minTextureSize.width())
              textureSize.rwidth() *= 2; <- rwidth is 0 here.
      

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            daiweili Daiwei Li
            Reporter:
            daiweili Daiwei Li
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes