Derived class from QLineEdit is behaving differently.
hi,
i have derived a class say MyLineEdit From QLineEdit as below.
Code:
{
setFocusPolicy(Qt::OnClickFocus);
setInputMask("000");
setmaxLength(5);
setStyleSheet("color:white");
}
myLineEdit *obj1;
obj1 -> setInputMask("NNNNNN");
connect(obj1,SIGNAL(editingFinished()),this,SLOT( printFinish()));
But, This never comes in a printFinish() Slot.
If i dont take use, obj1 -> setInputMask("NNNNNN"); , than the things are normal and it invokes printFinish() Slot.
what is the problem in this.
Re: Derived class from QLineEdit is behaving differently.
What do you type in to the line edit?
you need to input 6 chars.
Re: Derived class from QLineEdit is behaving differently.
Yah,
I want to type 6 ascii chars in LineEdit by changing the setInputMask to 'aaaaaaa' .
cant i change for the derived object ?
Re: Derived class from QLineEdit is behaving differently.
I don't understand your question.
The mask states you have to input 6 chars.