qt - QMessageBox and unicode character -


i'm trying display bullet character in qmessagebox, renders typical "unknown" character (a ? on black background).

here's how try :

qstring message = qstring::fromutf8("\u2022"); qmessagebox::warning(this, "some title", message); // "this" qmainwindow subclass 

i have tried use bullet character directly in source code :

qstring message = "•"; 

visual studio prompts me save file unicode, do, result still same.

i'm using qt5.3 visual studio 2010 on windows 8.1, if matters.

i in following way:

qstring message = qstring("this bullet character: %1").arg(qchar(0x2022)); 

Comments