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. redraw problem with qt quick 5.10 under Mojave (OSX 10.14)

redraw problem with qt quick 5.10 under Mojave (OSX 10.14)

Scheduled Pinned Locked Moved Solved QML and Qt Quick
10 Posts 2 Posters 1.7k 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.
  • I Offline
    I Offline
    igor_stravinsky
    wrote on last edited by
    #1

    I just did an update to 10.14, and after doing it, it seems that Qt Quick Controls 2 objects aren't redrawing when expected.

    Changing the visibility of an object, for instance, doesn't make it appear and disappear. Interestingly, if I hide my application window behind another window and then bring it to the fore, the object will redraw correctly.

    Any ideas why this would be happening?

    I'm attaching a sample project that demonstrates the issue.

    import QtQuick 2.10
    import QtQuick.Window 2.2
    import QtQuick.Controls 2.3
    
    
    Window {
        visible: true
        width: 640
        height: 480
        title: qsTr("Hello World")
    
        Button{
    
            id:clickmeButton
            anchors.centerIn: parent
            text: "click me"
    
            onClicked:{
                if (changingText.visible){
                    changingText.visible = false;
                }
                else{
    
                    changingText.visible = true;
                }
            }
        }
    
        Label{
            id:changingText
            anchors{
                horizontalCenter: parent.horizontalCenter
                top: clickmeButton.bottom
                topMargin: 25
            }
            font.pixelSize: 48
    
            text:"label"
    
            onVisibleChanged:{
                console.log("visibility=",visible)
            }
        }
    }
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Can you test with a more recent version of Qt ? Qt 5.11 is the current release with 5.12 around the corner.

      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
      • I Offline
        I Offline
        igor_stravinsky
        wrote on last edited by
        #3

        It appears to be fixed under 5.11

        I haven't updated to 5.11 because that version drop support for a 32-bit web view, but now it looks as if my hand will be forced...

        Thanks for the suggestion!

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

          Do you mean you were building Qt yourself in 32bit mode ?

          Because it's been years that 32bit support has been dropped by Apple.

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

          I 1 Reply Last reply
          0
          • SGaistS SGaist

            Do you mean you were building Qt yourself in 32bit mode ?

            Because it's been years that 32bit support has been dropped by Apple.

            I Offline
            I Offline
            igor_stravinsky
            wrote on last edited by
            #5

            @SGaist
            I'm working on a cross-platform project, but doing development on a mac.

            On Mac, everything is happy, but on Windows, I wasn't able to move to 5.11 because the 32 bit version of WebView disappeared from Qt. I had other dependencies that kept me from switching to a 64 bit Windows build.

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

              Which module are you using for your web view ?

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

              I 1 Reply Last reply
              0
              • SGaistS SGaist

                Which module are you using for your web view ?

                I Offline
                I Offline
                igor_stravinsky
                wrote on last edited by
                #7

                @SGaist We're using the standard QML WebView.

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

                  Except that WebView can come from different modules: QtWebView and QtWebEngine, hence my question.

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

                  I 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    Except that WebView can come from different modules: QtWebView and QtWebEngine, hence my question.

                    I Offline
                    I Offline
                    igor_stravinsky
                    wrote on last edited by
                    #9

                    @SGaist We're using the QtWebView, not the engine

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

                      Ok, then IIRC, on platforms that don't provide a native web view, QtWebEngine is used, hence the inherited limitations on these platforms.

                      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