Why can't I set a size for the window in Qt Quick 2.4? [Solved]
-
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.
-
Hi,
It might just be a bug that has creeped in. What exact version of Qt are you using ?
-
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).
-
Hi @Super_Newbie,
You are settingwidth
andheight
for theRectangle
which is the child ofWindow
.Window
wont resize unless you setwidth
andheight
for the it explicitly. ThatWindow
is inmain.qml
. -
Thank you very much, p3c0.