Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. OS X. Rectangle blinks while resizing
Qt 6.11 is out! See what's new in the release blog

OS X. Rectangle blinks while resizing

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 1 Posters 1.2k Views 1 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.
  • P Offline
    P Offline
    pehcha
    wrote on last edited by
    #1

    Hello,

    I created a very simple QML file MyRectangle.qml. Its content is:

    @import QtQuick 2.0

    Rectangle {
    id: root
    width: 300; height: 500
    color: "green"

    Rectangle {
        id: child
        height: root.height / 2
        anchors { top: parent.top; left: parent.left; right: parent.right }
        color: "blue"
    }
    

    }
    @

    If I run the file with qmlscene on Windows everything goes fine. But when I run the same on OS X 10.7 (on virtual machine):

    > qmlscene MyRectangle.qml

    I got strange weird blinking when I try to resize a window. I recorded the blinking. It can be seen on this video: http://youtu.be/8psqoRixSzI

    This strange behavior reproduces only on OS X. Unfortunately I can't test it on real MacBook therefore I test it only my virtual machine.
    Here is my specs:

    VM: VMWare Workstation 9.0.1
    Guest OS: OS X 10.7.1
    Qt: 5.1.1

    So does anybody face this problem or this is a known bug? Could anybody tell me what am I doing wrong?

    Thanks

    1 Reply Last reply
    0
    • P Offline
      P Offline
      pehcha
      wrote on last edited by
      #2

      For anyone who might be interested I got rid of the annoying flittering by adding multi-sampling to qlmscene:

      > qmlscene --multisample MyRectangle.qml

      Everything re-sized smoothly but slowly distinctly with this option turned on.

      By the way you can enable multi-sampling on QWindow class and its derivatives in your application by customizing its format:

      @QQuickView view;
      view.setSource(QUrl("/path/to/MyRectangle.qml"));
      QSurfaceFormat surfaceFormat(view.format());
      surfaceFormat.setSamples(8);
      view.setFormat(surfaceFormat);@

      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