hi,
i have derived a class say MyLineEdit From QLineEdit as below.
{
setFocusPolicy(Qt::OnClickFocus);
setInputMask("000");
setmaxLength(5);
setStyleSheet("color:white");
}
myLineEdit *obj1;
obj1 -> setInputMask("NNNNNN");
connect(obj1,SIGNAL(editingFinished()),this,SLOT( printFinish()));
classs MyLineEdit:public QLineEdit
{
setFocusPolicy(Qt::OnClickFocus);
setInputMask("000");
setmaxLength(5);
setStyleSheet("color:white");
}
myLineEdit *obj1;
obj1 -> setInputMask("NNNNNN");
connect(obj1,SIGNAL(editingFinished()),this,SLOT( printFinish()));
To copy to clipboard, switch view to plain text mode
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.
Bookmarks