------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the
assignee.
http://bug
s.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
---
_______________________________________________
Kde-bindings mailing list
Kde-bindings kde.org
ht
tps://mail.kde.org/mailman/listinfo/kde-bindings
|