Unsolved How to call QLineEdit::inputMethodEvent(QInputMethodEvent *e)
-
How to call QLineEdit::inputMethodEvent(QInputMethodEvent *e)
-
@Vinod-Kuntoji said in How to call QLineEdit::inputMethodEvent(QInputMethodEvent *e):
QWidget::inputMethodEvent
is an event handler which you can reimplement to do custom stuff. There is no need to call it directly.
-
@Christian-Ehrlicher , Ya, I know, but It is not getting called onTextChanged signal.
-
I'm not really familiar with QInputMethodEvent but why should this be created during onTextChanged? Please give some more informations what you're trying to achieve. Best would be a compilable example.
-
I want to know when this inputMethodEvent() method gets called.
-
Hi
Did you study the docs ?
It says "Note that when creating custom text editing widgets, the Qt::WA_InputMethodEnabled window attribute must be set explicitly (using the QWidget::setAttribute() function) in order to receive input method events."But i do wonder what you need it for ?
-
@mrjj said in How to call QLineEdit::inputMethodEvent(QInputMethodEvent *e):
WA_InputMethodEnabled
I am setting this attribute Qt::WA_InputMethodEnabled
-
@Vinod-Kuntoji said in How to call QLineEdit::inputMethodEvent(QInputMethodEvent *e):
@Christian-Ehrlicher , Ya, I know, but It is not getting called onTextChanged signal.
I would have thought: it won't get called "on"/"from"/"as a result of"
textChanged
signal. It will be called as a consequence of the input, earlier thantextChanged
, no? -
I reimplemeted this method, It is not at all getting called.
-
@Vinod-Kuntoji
What does that have to do with your statement:Ya, I know, but It is not getting called onTextChanged signal.