Solved How to resize main window when bottom element's height change
-
@MoaMoaK
Hi, this may be a stupid question, but why do you want to resize the Video-Widget in the first place?You could make the toolbar and the bottom button-bar its own Widget and just place it on top of the video-widget. With varying decrees of transparency and
Qt::FramelessWindowHint
set to true. -
@J.Hilk
At the end, I would like both possibilities implemented. Having the controls under the video, allows you to see every pixel of the screen while still being able to manipulate the controls. For instance, in some cases, you may want to examine frame by frame a specific section of the video that would appear under the controls else. -
@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.