[PyQt] QSpinBox and setLineEdit
Phil Thompson
phil at riverbankcomputing.com
Fri Jan 30 09:42:21 GMT 2009
On Fri, 30 Jan 2009 10:22:57 +0100, Mpi <mpi at comxnet.dk> wrote:
> Hi,
>
> You can set a custom line edit on a spinbox using the method
setLineEdit().
> Suppose I implement a class that inherits from QLineEdit and overwirite
the
> 'setText' method, you'd expect that pressing the arrow button on the
> spinbox
> would trigger a call to your custom setText method.
No you wouldn't because setLine() isn't virtual.
Phil
More information about the PyQt
mailing list