Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Qt console doesn't support ibus input method #367

Closed
fperez opened this Issue · 6 comments

3 participants

Fernando Perez Evan Patterson INADA Naoki
Fernando Perez
Owner

Reported by user on-list:

I can't use input method (IBus) on Ubuntu Natty.

I'm using Natty's Python and PyQt packages. And I compiled most recent released version of zma, pyzmq. I don't know why QTextEdit widgets in console_widget doesn't support input method.

end report

I have no idea if this is an inherent limitation of the udnerlying widget or something that's there and easily turned on, which we're simply not activating.

Evan Patterson epatters was assigned
Evan Patterson
Collaborator

It looks like Qt supports this:

http://doc.qt.nokia.com/4.7/qwidget.html#inputMethodEvent

I'll try this out when I get a chance.

INADA Naoki

FYI. I can use input method when I comment out all "setReadOnly(True)".

INADA Naoki

Maybe, this is a bug of QPlainTextEdit.

When with QTextEdit, InputMethod is available after setReadOnly(True); setReadOnly(False).
But it isn't available with QPlainTextEdit.

To fix this bug, insert "self._control.setAttribute(QtCore.Qt.WA_InputMethodEnabled, True)" after
all "setReadOnly(Fasel)".

Evan Patterson epatters closed this in 0f5a86d
Evan Patterson
Collaborator

Confirmed the bug and fix, and pushed to master.

@methane
Thanks for the fix!

Fernando Perez
Owner
Evan Patterson
Collaborator

OK, will do.

Brian E. Granger ellisonbg referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
Damián Avila damianavila referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
matthew von rocketstein mattvonrocketstein referenced this issue from a commit in mattvonrocketstein/ipython
Evan Patterson epatters Work around Qt bug where input method is disabled sometimes in QPlain…
…TextEdit.

Closes gh-367.
235a0de
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.