Qt console doesn't support ibus input method #367

Closed
fperez opened this Issue Apr 12, 2011 · 6 comments

Projects

None yet

3 participants

@fperez
Owner
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
Contributor

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.

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…
…TextEdit.

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

Confirmed the bug and fix, and pushed to master.

@methane
Thanks for the fix!

Owner
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.

Contributor

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…
…TextEdit.

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