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

QCocoaWindow can return 0 devicePixelRatio

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.2.0
    • 5.1.0
    • Core: Plugins
    • None
    • 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

            daiweili Daiwei Li
            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