Map showing white screen first time it is opened.



  • @import QtQuick 2.4
    import QtQuick.Controls 1.3
    import QtQuick.Window 2.2
    import QtQuick.Dialogs 1.2
    import QtLocation 5.3
    import QtPositioning 5.2

    Rectangle {
    id: nav
    x: 0
    y: 320
    width: 800
    height: 960
    color: "#00000000"
    visible: false

        function setVisible(yesorno)
        {
            nav.visible = yesorno;
        }
        Plugin{
            id: mapPlugin
            name : "nokia"
            PluginParameter { name: "token"; value: "xxx" }
            PluginParameter { name: "app_id"; value: "yyy"}
        }
    
        Map {
            id: map
            plugin: mapPlugin
            anchors.fill: parent
            width: parent.width
            height: parent.height
            center {
                    latitude: 51
                    longitude: 5
                }
            zoomLevel: 1;
            gesture.enabled: true
            visible: true
        }
    
        Text {
            id: text1
            x: 97
            y: 94
            width: 649
            height: 160
            text: qsTr("test")
            font.pixelSize: 15
        }
    

    }
    @

    When I enable this window(or make it visible) it stays white at first until I move the map around.
    The desired behavior is to show the map right away.
    How can I establish this?



  • Anyone with an idea???
    I got rid of the problem and now I have it again..


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.