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. QtQuick.Controls 2.0 cannot accept width/height of ApplicationWindow

QtQuick.Controls 2.0 cannot accept width/height of ApplicationWindow

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 580 Views 2 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.
  • S Offline
    S Offline
    simonh5
    wrote on last edited by simonh5
    #1

    Hi there!

    In any project in the example gallery of Qt oder an example by myself, the import of QtQuick.Controls 2.0 doesn't accept the property width, height or visible in the ApplicationWindow. What's wrong?

    I am working with Qt 5.7, Windows 10.

    Thanks for any help.

    1 Reply Last reply
    0
    • jpnurmiJ Offline
      jpnurmiJ Offline
      jpnurmi
      wrote on last edited by
      #2

      It's just a glitch in the Qt Creator version that was released with Qt 5.7.0. The app still runs, right? Adding import QtQuick.Window 2.2 before the controls import should help Qt Creator to figure it out.

      1 Reply Last reply
      2
      • S Offline
        S Offline
        simonh5
        wrote on last edited by
        #3

        Thanks a lot, jpnurmi! It works perfectly!

        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