You are not logged in.

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)