<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Andale Mono; font-size: 10pt; color: #000000'><font face="Andale Mono">Hey Vincent,</font><div><font face="Andale Mono"><br></font><font color="#ba86e5" style="font-family: 'Andale Mono';"><span style="font-family: Helvetica, Arial, sans-serif;">with </span><br style="font-family: Helvetica, Arial, sans-serif;"><span style="font-family: Helvetica, Arial, sans-serif;">self.dockWidget.setFeatures(QDockWidget.DockWidgetMovable)</span><br style="font-family: Helvetica, Arial, sans-serif;"><span style="font-family: Helvetica, Arial, sans-serif;">self.dockWidget.setAllowedAreas(Qt.LeftDockWidgetArea|Qt.RightDockWidgetArea)</span><br style="font-family: Helvetica, Arial, sans-serif;"><span style="font-family: Helvetica, Arial, sans-serif;">for example.</span><br></font><br>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.</div><div>Please help regarding this.</div><div>I am attaching my code. Please find he attachment. Please modify that code so that I can make it movable.</div><div><br></div><div><span style="font-family: 'Andale Mono';">-- </span><br style="font-family: 'Andale Mono';"><span name="x" style="font-family: 'Andale Mono';"></span><span style="font-family: 'Andale Mono';">Thanks & Regards</span><br style="font-family: 'Andale Mono';"><span style="font-family: 'Andale Mono';">Binit Amin</span><br style="font-family: 'Andale Mono';"><span style="font-family: 'Andale Mono';">Assistant System Engineer</span><br style="font-family: 'Andale Mono';"><span style="font-family: 'Andale Mono';">TATA Consultancy Services</span><br style="font-family: 'Andale Mono';"><span style="font-family: 'Andale Mono';">Cellno: +91-7276974159</span><br style="font-family: 'Andale Mono';"><span style="font-family: 'Andale Mono';">Mailto: binit.amin@tcs.com</span><br style="font-family: 'Andale Mono';"><span style="font-family: 'Andale Mono';">Website: http://www.tcs.com</span></div><div><br><hr id="zwchr" style="font-family: 'Andale Mono'; font-size: 10pt; color: rgb(0, 0, 0);"><div style="font-family: Helvetica, Arial, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); font-weight: normal; font-style: normal; text-decoration: none;"><b>From: </b>"Vincent Vande Vyvre" <vincent.vande.vyvre@telenet.be><br><b>To: </b>pyqt@riverbankcomputing.com<br><b>Sent: </b>Thursday, July 2, 2015 5:18:40 PM<br><b>Subject: </b>Re: [PyQt] Movable Dock Widget<br><br>
<div class="moz-cite-prefix">Le 02/07/2015 12:12, Binit Amin a
écrit :<br>
</div>
<blockquote cite="mid:eb42fa8c-0eef-422e-baa4-395388462a36@inchnzm02.tcsin.com">
<style>p { margin: 0; }</style>
<div style="font-family: Andale Mono; font-size: 10pt; color:
#000000">Hi all,
<div><br>
</div>
<div>
<div style="font-size: 10pt; background-color: rgb(255, 255,
255);"><span style="font-family: arial, helvetica,
sans-serif; font-size: small; line-height:
18.2000007629395px;">I am using python with </span><span style="font-family: arial, helvetica, sans-serif;
font-size: small; line-height: 18.2000007629395px;">Pyqt4</span><span style="font-family: arial, helvetica, sans-serif;
font-size: small; line-height: 18.2000007629395px;"> for</span><span style="font-family: arial, helvetica, sans-serif;
font-size: small;"> making one GUI, In that I have to
attach one Dock Widget which should be movable on the GUI
irrespective of its initial position.</span></div>
<div style="font-size: 10pt; background-color: rgb(255, 255,
255);"><span style="font-family: arial, helvetica,
sans-serif; font-size: small;">How to make that Dock
Widget movable on the screen.</span></div>
<div style="font-size: 10pt; background-color: rgb(255, 255,
255);"><font size="2"><br>
</font></div>
<div style="font-size: 10pt; background-color: rgb(255, 255,
255);"><span style="font-family: arial, helvetica,
sans-serif; font-size: small;">FYI I am using Fedora 19,
PyQt 4.11.3, Python 2.7.5, PyTango 8.1.5</span></div>
<div style="font-size: 10pt; background-color: rgb(255, 255,
255);"><font size="2" face="arial, helvetica, sans-serif"><br>
</font></div>
<div style="font-size: 10pt; background-color: rgb(255, 255,
255);">
<div style="font-family: 'Times New Roman'; font-size:
medium;"><font face="Andale Mono"><span style="font-size:
13.3333330154419px;">Any help is appreciated. Thank
you!</span></font></div>
<div style="font-family: 'Times New Roman'; font-size:
medium;"><span class="Apple-tab-span" style="white-space:
pre; font-size: 13.3333330154419px;"><font face="Andale
Mono"><br>
</font></span></div>
<div style="font-size: 13.3333330154419px;"><font size="2" face="arial, helvetica, sans-serif">I am attaching one
sample program so that you can easily understand what
exactly I want.</font></div>
<div style="font-family: 'Times New Roman'; font-size:
medium;"><span style="font-family: 'Andale Mono';
font-size: 13.3333330154419px;">PFA.</span></div>
</div>
</div>
<span><br>
-- <br>
<span></span>Thanks & Regards<br>
Binit Amin<br>
Assistant System Engineer<br>
TATA Consultancy Services<br>
Cellno: +91-7276974159<br>
Mailto: <a class="moz-txt-link-abbreviated" href="mailto:binit.amin@tcs.com" target="_blank">binit.amin@tcs.com</a><br>
Website: <a class="moz-txt-link-freetext" href="http://www.tcs.com" target="_blank">http://www.tcs.com</a><span></span><br>
</span></div>
<p>=====-----=====-----=====<br>
Notice: The information contained in this e-mail<br>
message and/or attachments to it may contain <br>
confidential or privileged information. If you are <br>
not the intended recipient, any dissemination, use, <br>
review, distribution, printing or copying of the <br>
information contained in this e-mail message <br>
and/or attachments to it are strictly prohibited. If <br>
you have received this communication in error, <br>
please notify us by reply e-mail or telephone and <br>
immediately and permanently delete the message <br>
and any attachments. Thank you</p>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
PyQt mailing list <a class="moz-txt-link-abbreviated" href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a>
<a class="moz-txt-link-freetext" href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></pre>
</blockquote>
<br>
with <br>
self.dockWidget.setFeatures(QDockWidget.DockWidgetMovable)<br>
self.dockWidget.setAllowedAreas(Qt.LeftDockWidgetArea|Qt.RightDockWidgetArea)<br>
for example.<br>
<br>
<a class="moz-txt-link-freetext" href="http://pyqt.sourceforge.net/Docs/PyQt4/qdockwidget.html" target="_blank">http://pyqt.sourceforge.net/Docs/PyQt4/qdockwidget.html</a><br>
<br>
Vincent<br>
<br>_______________________________________________<br>PyQt mailing list PyQt@riverbankcomputing.com<br>http://www.riverbankcomputing.com/mailman/listinfo/pyqt</div><br><span style="font-family: 'Andale Mono'; font-size: 10pt; color: rgb(0, 0, 0);"><br></span></div></div></body></html>