[Kde-bindings] [Bug 185783] New: [Qyoto] QComboBox.AddItem() and QComboBox.AddItems() don't produce same result
CedX
cedx at free.fr
Sat Feb 28 09:43:13 UTC 2009
https://bugs.kde.org/show_bug.cgi?id=185783
Summary: [Qyoto] QComboBox.AddItem() and QComboBox.AddItems()
don't produce same result
Product: bindings
Version: unspecified
Platform: Ubuntu Packages
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: kde-bindings at kde.org
ReportedBy: cedx at free.fr
Version: Qyoto 4.3 (libqyoto4.3-cil / package
4.1.4-0ubuntu1~intrepid1) (using KDE 4.1.4)
Compiler: GMCS (Mono C# compiler) version 1.9.1.0
OS: Linux
Installed from: Ubuntu Packages
When I try to fill a QComboBox with non-English strings (i.e. containing
stressed characters like é,à, û...), I don't obtain the same result if I use
QComboBox.AddItem() method in a loop that if I use QComboxBox.AddItems()
method.
QComboBox.AddItem() method produces valid display : stressed characters are
left untouched.
QComboBox.AddItems() method convert stressed characters to another encoding
(don't know which one, but it's not Utf-8) producing garbage display of strings
in combo box.
Here is a simple example :
var mainWindow=new QDialog();
var list=new List<string>();
list.Add("ASCII - Coder une adresse e-mail");
list.Add("Base64 - Transmettre des données binaires");
list.Add("HTML - Caractères éligibles en entités HTML");
list.Add("LowerCase - Caractères alphabétiques en minuscules");
var combo1=new QComboBox(mainWindow);
foreach(var item in list) combo1.AddItem(item);
var combo2=new QComboBox(mainWindow);
combo2.AddItems(list);
combo1 and combo2 have not the same display !!!
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Kde-bindings
mailing list