Re: [PyQt] Can't get keyboard shortcuts to work

2012-01-22 Thread David Townshend
Thanks for the reply. I just realised that the example I sent does actually work (once I sort out the focus). After about an hour of testing I discovered that in my actual scenario I never called widget.addAction(). I've got quite a bit of abstraction around the QActions and I somehow missed it!

Re: [PyQt] Simple C++ example has undefined symbol

2012-01-22 Thread Jens Thoms Toerring
Hi Gary, On Sun, Jan 22, 2012 at 11:57:44AM -0500, Gary Fisher wrote: > >>> What does "return (static char *)Null" mean? > > My mistake...I meant "return (const char *)Null" ... not staticand yes > I do believe NULL is used in C++. At least the compiler didn't witch at me > for it.

Re: [PyQt] Simple C++ example has undefined symbol

2012-01-22 Thread Gary Fisher
Hi Jens, Thank you for getting back to me, much appreciated. My source code "word.cpp" is attached. OK, just to make sure we're all on the same page here, this is the page containing the recipe I'm following. :-) >>> What d

Re: [PyQt] Building PyQT windows 7 64 bit QT 4.8.0

2012-01-22 Thread Teodor Calin Hanchevici
Hi, as I suspected, the QT distribution was incomplete. After rebuilding and reinstalling QT, Py-QT built fine. I wonder if would be possible to get more verbose/clearer error messages from sip? Thank you all Teodor On Thu, Jan 19, 2012 at 1:05 PM, wrote: > Nico, > In my case it seems that the Q

Re: [PyQt] Sending a Signal from a QTableWidget header

2012-01-22 Thread Hans-Peter Jansen
On Sunday 22 January 2012, 16:38:21 Hans-Peter Jansen wrote: > On Saturday 21 January 2012, 23:21:18 starglider.dev wrote: > > Hi, > > I need to open a dialog if the user click in the QTableWidget > > header. > > There's no such class in PyQt (nor in Qt). If you mean QTable, then > QHeader.clicked(

Re: [PyQt] Sending a Signal from a QTableWidget header

2012-01-22 Thread Hans-Peter Jansen
On Saturday 21 January 2012, 23:21:18 starglider.dev wrote: > Hi, > I need to open a dialog if the user click in the QTableWidget header. There's no such class in PyQt (nor in Qt). If you mean QTable, then QHeader.clicked() is proably, wat you're looking for. Pete ___

Re: [PyQt] Function to open window and return user input

2012-01-22 Thread Hans-Peter Jansen
On Friday 20 January 2012, 20:38:33 Christopher Evans wrote: > QInput is designed to get a single input from a user. > > In my case, we are making a complex remapping dialog that takes two > ordered lists as input, allows the users to change the order, then on > dialog close, it should return the t

Re: [PyQt] Can't get keyboard shortcuts to work

2012-01-22 Thread Hans-Peter Jansen
On Thursday 19 January 2012, 10:53:31 David Townshend wrote: > I can't get keyboard shortcuts to work with Qt.WidgetShortcut > or Qt.WidgetWithChildrenShortcut context. It seems that nothing I do > will trigger the action. Below is a sample class which is giving the > problem. Can anyone point out

Re: [PyQt] GraphicsView and Opengl

2012-01-22 Thread Tayfun Kayhan
In case it helps, the example works properly on my system, Kubuntu 11.10, 64bit. You could also try running OpenGL examples that python-qt4-doc package provides.  From: Peter Würtz To: pyqt@riverbankcomputing.com Sent: Sunday, January 22, 2012 1:23 PM Subject:

[PyQt] GraphicsView and Opengl

2012-01-22 Thread Peter Würtz
Hi, I'm having trouble using QGraphicsView on a QGLWidget. I'm getting a white window and errors like this these: QGLShader: could not create shader Vertex shader for simpleShaderProg (MainVertexShader & PositionOnlyVertexShader) failed to compile This is an example application triggering the pro