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. Window not visible!!!
Qt 6.11 is out! See what's new in the release blog

Window not visible!!!

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 304 Views
  • 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.
  • N Offline
    N Offline
    nullbuil7
    wrote on last edited by
    #1

    this is the exact code from Qt5 Cadaques Book. it runs the exe, i can see it in task manager but there is no window. i don't know what's wrong

    import QtQuick 2.12
    
    Image {
        id: root
        source: "images/background.png"
    
        Image {
            id: pole
            anchors.horizontalCenter: parent.horizontalCenter
            anchors.bottom: parent.bottom
            source: "images/pole.png"
        }
    
        Image {
            id: wheel
            anchors.centerIn: parent
            source: "images/pinwheel.png"
        }
    }
    
    J.HilkJ 1 Reply Last reply
    0
    • N nullbuil7

      this is the exact code from Qt5 Cadaques Book. it runs the exe, i can see it in task manager but there is no window. i don't know what's wrong

      import QtQuick 2.12
      
      Image {
          id: root
          source: "images/background.png"
      
          Image {
              id: pole
              anchors.horizontalCenter: parent.horizontalCenter
              anchors.bottom: parent.bottom
              source: "images/pole.png"
          }
      
          Image {
              id: wheel
              anchors.centerIn: parent
              source: "images/pinwheel.png"
          }
      }
      
      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by J.Hilk
      #2

      @nullbuil7 said in Window not visible!!!:

      this is the exact code from Qt5 Cadaques Book

      I do not know that one and you deliver not enough information.

      Pleas answer the following:

      How do you load the file, and in what
      QQuickWidget, QQuickView, QQmlApplicationEngine etc

      Is it your only QML file loaded, or is it inside a child of an other form ?

      Compiler,
      QtVersion
      Platform


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved