You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Friday, March 11th 2005, 2:26pm

Limit lineEdit of input

I want Limit lineEdit input
example:
lineEdit of content only (0---24:1----59)----->time input

chombium

Trainee

  • "chombium" is male

Posts: 45

Location: Skopje, Macedonia

  • Send private message

2

Friday, March 11th 2005, 2:42pm

RE: Limit lineEdit of input

Use the
void QLineEdit::setInputMask ( const QString & inputMask )

method to set the mask to your needs (time,date....)

or you can create the lineEdit with:

QLineEdit::QLineEdit ( const QString & contents, const QString & inputMask, QWidget * parent, const char * name = 0 )

see qt docs for details

Cheers, Jovan

zlatko

Professional

  • "zlatko" is male

Posts: 728

Location: Ukraine,Lviv

Occupation: programmer

  • Send private message

3

Friday, March 11th 2005, 2:44pm

use QTimeEdit
a life without programming its alike empty bottle 8)