Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Map showing white screen first time it is opened.

    QML and Qt Quick
    1
    2
    498
    Loading More Posts
    • 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
      AQTStudent last edited by

      @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 Reply Quote 0
      • A
        AQTStudent last edited by

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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post