Qt4-preview-feedback Archive, December 2007
Qt Designer & QDockWidget
Message 1 in thread
I want to design my docking widgets in Qt Designer but not associate
them to the main window, until I have derived a new class. The sub class
inherits the form & adds (via multiple inheritance) further
functionality & then I add this derived class to the main window.
This is possible if I create a Form & add the QDockWidget to it (you
can't do it in Qt Designer without this). The one limitation with this
approach is that it is not then possible to determine if the window
control close (x) is clicked, because re-implementing the closeEvent
applies to the form associated object & not to the child QDockWidget.
Is there any way to do this or would it be possible to create a
QDockWidget Form?
Regards,
David Robinson
Please refer to www.anite.com for individual Anite company details. The contents of this e-mail and any attachments are for the intended recipient only. If you are not the intended recipient, you are not authorised to and must not disclose, copy, distribute, or retain this message or any part of it. It may contain information which is confidential and/or covered by legal professional or other privilege. Contracts cannot be concluded with us nor legal service effected by email.
Anite plc
Registered in England No.1798114
Registered Office: 353 Buckingham Avenue Slough Berks SL1 4PF United Kingdom
VAT Registration No. GB 787 418187
Scanned for viruses by BlackSpider MailControl.
Message 2 in thread
On Thursday 06 December 2007 14:35, Robinson, David wrote:
> Is there any way to do this or would it be possible to create a
> QDockWidget Form?
>
Yes, in designer 4.4 you can create a form based on QDockWidget (click new
form action and select Widgets|QDockWidget from the list)
Jarek
To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx