السلام عليكم ورحمة الله وبركاته
كيف اكتب داخل ليبل بالعربي بلغة سي بلس qt؟؟ او اجعل عنوان النافذه بالعربي؟؟
كيف اكتب داخل ليبل بالعربي بلغة سي بلس qt؟؟ او اجعل عنوان النافذه بالعربي؟؟
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
#include <QApplication> #include <QPushButton> #include <QTextCodec> int main(int argc, char *argv[]) { QApplication app(argc, argv); QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8")); QPushButton hello("السلام عليكم"); hello.resize(100, 30); hello.show(); return app.exec(); }
#include <QApplication> #include <QPushButton> #include <QTextCodec> [ int main(int argc, char *argv[]) { QApplication app(argc, argv); QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8")); QPushButton hello("السلام عليكم"); hello.resize(100, 30); hello.show(); return app.exec(); }
تعليق