[Kde-bindings] [Bug 152593] New: [QtRuby] Qt::LineEdit cannot handle double-byte properly.
Hideki Ikemoto
ikemo333 at gmail.com
Tue Nov 20 14:24:24 UTC 2007
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=152593
Summary: [QtRuby] Qt::LineEdit cannot handle double-byte
properly.
Product: bindings
Version: unspecified
Platform: Fedora RPMs
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: kde-bindings kde org
ReportedBy: ikemo333 gmail com
Version: (using KDE KDE 3.5.8)
Installed from: Fedora RPMs
Input japanese character (and probably other double-byte characters) in TextEdit and get text with Qt::LineEdit.text(), and it would see '?'.
Sample Code
---
#!/usr/bin/ruby
require 'Qt'
class MyMainWindow < Qt::MainWindow
slots 'slot_return_pressed()'
def initialize
super
line = Qt::LineEdit.new(self)
connect( line, SIGNAL("returnPressed()"),
self, SLOT("slot_return_pressed()"))
end
def slot_return_pressed
text = line text
puts text ### Error! japanese character -> '?'
end
end
app = Qt::Application.new(ARGV)
main_window = MyMainWindow.new
app.mainWidget = main_window
main_window.show
app.exec
---
More information about the Kde-bindings
mailing list