Re: Clearing a QLineEdit

2011-06-20 Thread Michael Pyne
On Monday, June 20, 2011 17:44:41 Steven Sroka wrote: > Do you know how to centre the ClickMessage text? If I set the > alignment of the text, only the text that the user types in is aligned > and not the ClickMessage text. Strictly speaking I think what you want to do is more properly part of the

Re: Clearing a QLineEdit

2011-06-20 Thread Steven Sroka
>On 20 June 2011 01:41, Parker Coates wrote: > On Mon, Jun 20, 2011 at 00:14, Steven Sroka wrote: >> Hi everyone, >> >> Does anyone know how to clear the contents of a QLineEdit when a user >> sets focus to it (ie. clicks it, presses the tab key repeatedly, >> etc.)? > > Subclass KLineEdit (which

Re: Clearing a QLineEdit

2011-06-20 Thread Thomas Lübking
Am Monday 20 June 2011 schrieb Steven Sroka: > Does anyone know how to clear the contents of a QLineEdit when a user > sets focus to it (ie. clicks it, presses the tab key repeatedly, > etc.)? You don't have to subclass it, just connect some slot to void QApplication::focusChanged ( QWidget * old,

Re: Clearing a QLineEdit

2011-06-19 Thread Parker Coates
On Mon, Jun 20, 2011 at 00:14, Steven Sroka wrote: > Hi everyone, > > Does anyone know how to clear the contents of a QLineEdit when a user > sets focus to it (ie. clicks it, presses the tab key repeatedly, > etc.)? Subclass KLineEdit (which you`re using instead of QLineWidget, right?) and reimple

Clearing a QLineEdit

2011-06-19 Thread Steven Sroka
Hi everyone, Does anyone know how to clear the contents of a QLineEdit when a user sets focus to it (ie. clicks it, presses the tab key repeatedly, etc.)? >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<