List Info

Thread: Qt::LineEdit cannot handle double-byte properly.




Qt::LineEdit cannot handle double-byte properly.
user name
2007-11-20 08:24:24
------- 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-bindingskde.org
ht
tps://mail.kde.org/mailman/listinfo/kde-bindings

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )