我先在在做一个视频播放的小程序,需要的是4个屏幕在同一个窗口中。现在有个问题就是四个窗口想要控制在相同的大小。
vwidget->setAspectRatio(Phonon::VideoWidget::AspectRatioWidget);
vwidget1->setAspectRatio(Phonon::VideoWidget::AspectRatioWidget);
vwidget2->setAspectRatio(Phonon::VideoWidget::AspectRatioWidget);
vwidget3->setAspectRatio(Phonon::VideoWidget::AspectRatioWidget);
vwidget->resize(320,240);
vwidget->resize(320,240);
vwidget2->resize(320,240);
vwidget3->resize(320,240);
我这里用了Phonon::VideoWidget::AspectRatioWidget这个参数来保证视频充满vwidget这个视窗,但是现在我随机找的两个不同分辨率的视频,播放出来之后大小不一样
resize好像并没有发挥作用...布局用的是gridlayout.
有办法可以让他们一样大吗?
vwidget->setAspectRatio(Phonon::VideoWidget::AspectRatioWidget);
vwidget1->setAspectRatio(Phonon::VideoWidget::AspectRatioWidget);
vwidget2->setAspectRatio(Phonon::VideoWidget::AspectRatioWidget);
vwidget3->setAspectRatio(Phonon::VideoWidget::AspectRatioWidget);
vwidget->resize(320,240);
vwidget->resize(320,240);
vwidget2->resize(320,240);
vwidget3->resize(320,240);
我这里用了Phonon::VideoWidget::AspectRatioWidget这个参数来保证视频充满vwidget这个视窗,但是现在我随机找的两个不同分辨率的视频,播放出来之后大小不一样

resize好像并没有发挥作用...布局用的是gridlayout.
有办法可以让他们一样大吗?