jogeshwarakundi
18th March 2008, 06:19
Hi,
I am using QTextEdit on Qtopia 4.3.0.
I set it to readonly.
QTextEdit* lTextEdit = new QTextEdit(this);
lTextEdit->setReadOnly(true);
lTextEdit->setText("You and me are one and same.\nYou and me are one and shame.\nYou and me are one and dame.");
lTextEdit->setGeometry(10, 140, 80, 80);
connect(lTextEdit, SIGNAL(textChanged()), this, SLOT(BtnClicked()));
All is working fine like being unable to modify it, select the text etc.
Problem is that when the widget attains navigation focus (the whole textbox and scrollbar are highlighted) i type a space or any other alphanumeric key, the text is lost. I tried searching but to no result :crying:
please help me out
I am using QTextEdit on Qtopia 4.3.0.
I set it to readonly.
QTextEdit* lTextEdit = new QTextEdit(this);
lTextEdit->setReadOnly(true);
lTextEdit->setText("You and me are one and same.\nYou and me are one and shame.\nYou and me are one and dame.");
lTextEdit->setGeometry(10, 140, 80, 80);
connect(lTextEdit, SIGNAL(textChanged()), this, SLOT(BtnClicked()));
All is working fine like being unable to modify it, select the text etc.
Problem is that when the widget attains navigation focus (the whole textbox and scrollbar are highlighted) i type a space or any other alphanumeric key, the text is lost. I tried searching but to no result :crying:
please help me out