i place a QTextEdit widget into a QWidget class(the QTextEdit's parent widget),but when the parent widget show,i clicked the QTextEdit,but it can't gain focus.how this situation comes?
views:
22answers:
1
A:
I don't know anything about symbian development so this is only a guess. Check the focus policy for the text edit. You probably want Qt::ClickFocus
or Qt::StrongFocus
.
Arnold Spence
2010-10-22 03:53:51
ok,this problem has been solved,thank you all the same.
2010-10-27 02:40:24
my solution: subclass QTextEdit,reimplement mousePressEvent(),and show a dialog,and then close it, ....The QTextEdit gain the foucs!!!
2010-10-27 02:43:58