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. Map showing white screen first time it is opened.
Forum Updated to NodeBB v4.3 + New Features

Map showing white screen first time it is opened.

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 1 Posters 637 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.
  • A Offline
    A Offline
    AQTStudent
    wrote on last edited by
    #1

    @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?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      AQTStudent
      wrote on last edited by
      #2

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

      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