[PyQt] Movable Dock Widget

Vincent Vande Vyvre vincent.vande.vyvre at telenet.be
Thu Jul 2 12:48:40 BST 2015


Le 02/07/2015 12:12, Binit Amin a écrit :
> Hi all,
>
> I am using python with Pyqt4 for making one GUI, In that I have to 
> attach one Dock Widget which should be movable on the GUI irrespective 
> of its initial position.
> How to make that Dock Widget movable on the screen.
>
> FYI I am using Fedora 19, PyQt 4.11.3, Python 2.7.5, PyTango 8.1.5
>
> Any help is appreciated.  Thank you!
>
> I am attaching one sample program so that you can easily understand 
> what exactly I want.
> PFA.
>
> -- 
> Thanks & Regards
> Binit Amin
> Assistant System Engineer
> TATA Consultancy Services
> Cellno: +91-7276974159
> Mailto: binit.amin at tcs.com
> Website: http://www.tcs.com
>
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt

with
self.dockWidget.setFeatures(QDockWidget.DockWidgetMovable)
self.dockWidget.setAllowedAreas(Qt.LeftDockWidgetArea|Qt.RightDockWidgetArea)
for example.

http://pyqt.sourceforge.net/Docs/PyQt4/qdockwidget.html

Vincent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150702/fec95f91/attachment.html>


More information about the PyQt mailing list