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. Why can't I set a size for the window in Qt Quick 2.4? [Solved]
Forum Update on Monday, May 27th 2025

Why can't I set a size for the window in Qt Quick 2.4? [Solved]

Scheduled Pinned Locked Moved QML and Qt Quick
qt quickqt quick 2.4
5 Posts 3 Posters 1.9k 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.
  • Cold_DistanceC Offline
    Cold_DistanceC Offline
    Cold_Distance
    wrote on last edited by Cold_Distance
    #1

    I tried to set a size for a window through Qt Creator, but it doesn't work. What's happening with Qt Quick 2.4? Is it an uncompleted technology?

    Thanks for the replies, a newbie here trying to learn a new technology, and I don't have any problem setting the window size in Qt Quick 2.3.

    I use the Linux 64 bits version of the platform.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      It might just be a bug that has creeped in. What exact version of Qt are you using ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • Cold_DistanceC Offline
        Cold_DistanceC Offline
        Cold_Distance
        wrote on last edited by
        #3

        I use Qt 5.4.2 and Qt Creator 3.4.1. I recently updated Qt Creator to the named version and now the size of the window appears in the code, but it remains looking very small when I compile (I set the size from the Design mode).

        Here's a screenshot.

        p3c0P 1 Reply Last reply
        0
        • Cold_DistanceC Cold_Distance

          I use Qt 5.4.2 and Qt Creator 3.4.1. I recently updated Qt Creator to the named version and now the size of the window appears in the code, but it remains looking very small when I compile (I set the size from the Design mode).

          Here's a screenshot.

          p3c0P Offline
          p3c0P Offline
          p3c0
          Moderators
          wrote on last edited by
          #4

          Hi @Super_Newbie,
          You are setting width and height for the Rectangle which is the child of Window. Window wont resize unless you set width and height for the it explicitly. That Window is in main.qml.

          157

          1 Reply Last reply
          1
          • Cold_DistanceC Offline
            Cold_DistanceC Offline
            Cold_Distance
            wrote on last edited by
            #5

            Thank you very much, p3c0.

            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