Qt console doesn't support ibus input method #367

fperez opened this Issue Apr 12, 2011 · 6 comments


None yet

3 participants

fperez commented Apr 12, 2011

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.

@epatters epatters was assigned Apr 12, 2011

It looks like Qt supports this:


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

methane commented Apr 12, 2011

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

methane commented Apr 12, 2011

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)".

@epatters epatters pushed a commit that closed this issue Apr 16, 2011
epatters Work around Qt bug where input method is disabled sometimes in QPlain…

Closes gh-367.
@epatters epatters closed this in 0f5a86d Apr 16, 2011

Confirmed the bug and fix, and pushed to master.

Thanks for the fix!

fperez commented Apr 16, 2011

Thanks everyone for the quick response on this!

@epatters, quick reminder: when we get a fix like that from a user,
remember to credit them in the commit message, so that when we write
the final release notes and credits we acknowledge them. Just keep it
in mind for the future, in this case I'll keep track of it.


OK, will do.

@mattvonrocketstein mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
epatters Work around Qt bug where input method is disabled sometimes in QPlain…

Closes gh-367.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment