Solved How to resize main window when bottom element's height change
-
@MoaMoaK
Hi,
I was trying to run the code provided by you but i'm facing an error with this header file
**#include <QtQuickWidgets/QQuickWidget>" /home/ashutosh/Resize/mainwindow.hpp:6: error: QtQuickWidgets/QQuickWidget: No such file or directory
#include <QtQuickWidgets/QQuickWidget>"I'm not able tp locate this header file i q libraries. Do we need to install any other plugins or something else.
Thanks.
-
@Ashutosh_Sachdeva What Qt version do you use?
Also you should just include QQuickWidget:#include <QQuickWidget>
-
@jsulm
i'm using QT 5.12.1.I tried including only <QQuickWidget> but it's showing the same error
-
@Ashutosh_Sachdeva How did you install Qt?
-
@jsulm
https://wiki.qt.io/Install_Qt_5_on_UbuntuThrough this link
-
@Ashutosh_Sachdeva So, you used offline installer? And you really installed Qt 5.12.1, not 5.7?
Was there anything to select during installation? -
Hi,
Sorry it's 5.13.1.
Yes i used the offline installer and there were many option and i selected the latest one.
-
@Ashutosh_Sachdeva Not sure, I don't use offline installer. My Qt setup was made via online installer and I have the headers.
-
@jsulm Ok
I have tried updating the lib. but that doesn't worked any other suggestion or solution?
-
@Ashutosh_Sachdeva You can try online installer to install Qt. My Qt setup installed using online installer has this header file.
Also as stated in your other thread make sure you haveQT += quickwidgets
in your pro file.