[PyQt] Movable Dock Widget
Binit Amin
binit.amin at tcs.com
Tue Jul 7 11:31:46 BST 2015
Hey Vincent,
with
self.dockWidget.setFeatures(QDockWidget.DockWidgetMovable)
self.dockWidget.setAllowedAreas(Qt.LeftDockWidgetArea|Qt.RightDockWidgetArea)
for example.
As on your suggestion I tried this is, but my DockWidget but it didn't work. I must be making some silly mistake in code. But wont be able to find the mistake.
Please help regarding this.
I am attaching my code. Please find he attachment. Please modify that code so that I can make it movable.
--
Thanks & Regards
Binit Amin
Assistant System Engineer
TATA Consultancy Services
Cellno: +91-7276974159
Mailto: binit.amin at tcs.com
Website: http://www.tcs.com
----- Original Message -----
From: "Vincent Vande Vyvre" <vincent.vande.vyvre at telenet.be>
To: pyqt at riverbankcomputing.com
Sent: Thursday, July 2, 2015 5:18:40 PM
Subject: Re: [PyQt] Movable Dock Widget
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
_______________________________________________
PyQt mailing list PyQt at riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150707/cbd9aec9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Movable_Dock_Widget.py
Type: text/x-python
Size: 2383 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150707/cbd9aec9/attachment.py>
More information about the PyQt
mailing list