View Full Version : QMovie as the background of a QDialog?
qlands
21st August 2012, 15:51
Hi,
How can I have a QMovie as the background of a QDialog?
Many thanks,
Carlos.
spirit
21st August 2012, 16:15
Put a QLabel on a QDialog.
qlands
21st August 2012, 17:00
Hi,
Yes I can use a qlabel to show the movie. But I need to have some other widgets on top of the movie in a layout. If I have a QLabel and I set the QDialog to a Vertical Layout the movie will not be under the other widgets.
spirit
21st August 2012, 17:34
Did you try to put layout on QLabel?
qlands
21st August 2012, 23:40
No did not try that... but how can I put a layout on a QLabel? Would it be like enable QLabel to contain other widgets? I don't know how to do that.
yeye_olive
22nd August 2012, 09:54
Yes, QLabel may have child widgets and a layout to lay them out like any other widget. This is no different from adding children to a QDialog, a QGroupBox, etc.
qlands
22nd August 2012, 14:16
Hi,
That sound promising. Can I do that with QT creator or just pragmatically?
Many thanks,
Carlos
spirit
22nd August 2012, 14:46
Yes, you can.
Don't afraid to try anything by yourself.
qlands
22nd August 2012, 15:11
I may sound very silly but I can't drag and drop a widget for example a QPushButton in a QLabel in the same way I drop a QPushButton in a QGroupBox. The groupbox contains the QPushButton however the QLabel does not! Do I need to change anything in the QLabel widget?
I am using QT Creator 2.3.1
Many thanks.
spirit
22nd August 2012, 15:31
Take my words back: unfortunately you can't do this in Qt Designer(Qt Creator). You can only do this in the code.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.