Qt Forum

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

    No QML errors, but it won't start

    QML and Qt Quick
    2
    4
    1392
    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.
    • O
      ondrejandrej last edited by

      Hi,

      I'm trying to port an app that uses Ubuntu components to pure Qt Quick, so that I can run it e. g. on Android. So I replaced the Ubuntu elements with Qt Quick elements (MainView -> Window etc) and eliminated all QML errors in the application ouput. Now I have no errors, but application still won't show. It pretends to be running and my test line with console.log is executed in Component.onCompleted, but no window shows up.
      Is there a way to enable something like a more detailed QML debugging output?

      1 Reply Last reply Reply Quote 0
      • p3c0
        p3c0 Moderators last edited by

        Hi,

        Is the Window component visible ?

        157

        1 Reply Last reply Reply Quote 0
        • O
          ondrejandrej last edited by

          Hi p3c0,

          I thought that visible property is true by default, but after your post I inserted visible: true in the code and now it works!
          Thanks

          1 Reply Last reply Reply Quote 0
          • p3c0
            p3c0 Moderators last edited by

            You're Welcome. It should actually be true by default. Don't know why the Qt developers want it to be explicitly set to true. The Qt Creator properly sets it in Qt Creator >= 5.3 when new project Qt Quick Application is created.

            157

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