[PyQt] QLineEdit drop event

2010-04-28 Thread Sebastian Elsner
Hello, I designed a GUI with Qt Designer. The GUI has several QLineEdits. I'd like to be able to drop files from the windows explorer to this line edits and display the path of the files. Documentation suggests that I subclass the line edit and reimplement the dropEvent. Would not be a

Re: [PyQt] QLineEdit drop event

2010-04-28 Thread Nick Gaens
Creating a small derived class and a new instance of it isn't that much of an effort in Python, given you only need to reimplement the dropEvent method. I don't think there are other solutions, based upon the doc's suggestion.. Although I must say that I've came across some code here on the list

Re: [PyQt] QLineEdit drop event

2010-04-28 Thread Sybren A. Stüvel
On 28-4-2010 14:04, Sebastian Elsner wrote: Documentation suggests that I subclass the line edit and reimplement the dropEvent. That sounds good to me. Would not be a problem, but my Line edit widget already exists on the dialog, so how to subclass without creating a completely new

[PyQt] why is mouseMoveEvent not reached in QMainWindow object

2010-04-28 Thread Christopher M. Nahler
I am new to PyQt4 and trying to find my way ... here n the first example code I am successfully trying to display the mouse coordinates in a little app using a QWidget object as main window. Below is another try where I would like to display the mouse coordinates in the status bar of a

[PyQt] PyQt4.uic.loadUi fail to load QTableWidget containing items

2010-04-28 Thread Yann Cointepas
With PyQt 4.7.2 (Qt 4.6.2, sip 4.10), it is not possible to load the attached ui file. The problem happens whenever a value is inserted in a QTableWidget with designer. It used to work with PyQt 4.3.3. The following code (used in IPython): from PyQt4.uic import loadUi from PyQt4.QtGui import

Re: [PyQt] why is mouseMoveEvent not reached in QMainWindow object

2010-04-28 Thread Brian Kelley
You need to turn mouse tracking on, it is off by default: http://doc.trolltech.com/4.6/qwidget.html#mouseTracking-prop Brian Kelley On Apr 28, 2010, at 9:37 AM, Christopher M. Nahler wrote: I am new to PyQt4 and trying to find my way ... here n the first example code I am successfully

Re: [PyQt] QGLWidget c++ widget works, SIP binding doesn't

2010-04-28 Thread Josh Knox
Josh Knox wrote: Hi All, I've got a simple custom QGLWidget that works fine when loaded from c++. (basically the Sierpinski demo) I've built a SIP binding against it, that I can load from python but it only ever displays a black area and it appears that the event loop never starts. My

[PyQt] HELP with QtWebkit.

2010-04-28 Thread patx
I have the code http://guest:gu...@patx.me/hg/fastpatx/file/6e5ce46a49f9/fastpatx.py i need to know how i can make function that will allow users to right click a link and then open the link in a new tab... can someone please show me how to do this. i am stumped... (feel free to paste code at a

Re: [PyQt] QGLWidget c++ widget works, SIP binding doesn't

2010-04-28 Thread Phil Thompson
On Wed, 28 Apr 2010 15:13:02 -0400, Josh Knox jk...@irobot.com wrote: Josh Knox wrote: Hi All, I've got a simple custom QGLWidget that works fine when loaded from c++. (basically the Sierpinski demo) I've built a SIP binding against it, that I can load from python but it only ever

Re: [PyQt] QGLWidget c++ widget works, SIP binding doesn't

2010-04-28 Thread Josh Knox
Phil Thompson wrote: On Wed, 28 Apr 2010 15:13:02 -0400, Josh Knox jk...@irobot.com wrote: Josh Knox wrote: Hi All, I've got a simple custom QGLWidget that works fine when loaded from c++. (basically the Sierpinski demo) I've built a SIP binding against it, that I can load from