tags:

views:

22

answers:

1

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?

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
ok,this problem has been solved,thank you all the same.
my solution: subclass QTextEdit,reimplement mousePressEvent(),and show a dialog,and then close it, ....The QTextEdit gain the foucs!!!