[PyQt] Drag and drop: Pixmap and lineedit/label problem

Nick Gaens mail at nickgaens.com
Tue Apr 13 20:56:49 BST 2010


In PyQt4, this is often solved by placing an underscore after the method..
like QDialog.exec_() and QWidget.raise_()

Documentation:
http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qwidget.html#raise


On Tue, Apr 13, 2010 at 7:06 PM, Anshul Jain <aj.phoenixter at gmail.com>wrote:

> I just tried using raise(). but it's alredy a keyword in python!! how to
> use it?
>
>
> On Tue, Apr 13, 2010 at 9:36 PM, Anshul Jain <aj.phoenixter at gmail.com>wrote:
>
>> Can you just give me an example on how to use this?
>> Thanks for your reply.
>>
>>
>>
>>
>> On Tue, Apr 13, 2010 at 3:46 AM, Nick Gaens <mail at nickgaens.com> wrote:
>>
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> Try to call raise() on the widget.
>>>
>>> http://doc.trolltech.com/4.6/qwidget.html#raise
>>>
>>>
>>> On 12/04/2010 23:33, Anshul Jain wrote:
>>> > Hello
>>> >
>>> > I'm trying to implement drag and drop and also trying to display a
>>> > label/LineEdit on my image. But the problem is that whenever i'm
>>> dragging
>>> > and dropping my image and using the label.move(x,y) to move the label
>>> to
>>> > appropriate position it gets hidden behind the image. :(
>>> >
>>> > How can i fix this up. I am also attaching the code. Please tell me
>>> what
>>> > should i do.
>>> >
>>> >
>>> > Regards
>>> > Anshul
>>> >
>>> >
>>> >
>>> >
>>> > _______________________________________________
>>> > PyQt mailing list    PyQt at riverbankcomputing.com
>>> > http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>>>
>>> - --
>>> - -- Nick Gaens
>>> -----BEGIN PGP SIGNATURE-----
>>> Version: GnuPG v1.4.10 (MingW32)
>>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>>>
>>> iQEcBAEBAgAGBQJLw5uyAAoJEHryXS9yfz/RoO0H/1YxvmWs/0n5tStAFLtT2EHI
>>> W7RF+/4gX9Yi0YG1qowTg2Cuxa5zg8wx298CgLpGMQ4m0iF09wBJxszJhWtbo74A
>>> pfeLVNWR/pY9Ps/G/OeS0OgxW0KiTlOy9GO7V1HG9WyhC4KsYXRD1Xqq50jYLuOO
>>> 8XObYKSzAL2UAxAdxPK/f9H1sJtJY4ASsSe5Q5Kq6L+6gCs4dbeCU/KfMqc+uJaK
>>> fzUXzqsk65ahk03QbA2sAtWXi3098igOMhSizl26OpKi8LG8bpuxHGLUurB3uLhc
>>> a1l0Vd7MzXOuapqM0YfSCU9oN3CAtglOt+HOhWOswot+ICWMDK8OXTDgFW4lr+s=
>>> =Xb21
>>> -----END PGP SIGNATURE-----
>>> _______________________________________________
>>> PyQt mailing list    PyQt at riverbankcomputing.com
>>> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>>>
>>
>>
>
>
> --
> NSIT B.E. student (Computers)
> http://anshul.pcunified.com
> http://pcunified.com
>



-- 
Nick Gaens
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100413/3dc2abc9/attachment.html>


More information about the PyQt mailing list