Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. International
  3. Persian
  4. مشکل در یونیکد
Qt 6.12 LTS is out! See what's new in the release blog

مشکل در یونیکد

Scheduled Pinned Locked Moved Persian
2 Posts 2 Posters 2.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ahura_24
    wrote on last edited by
    #1

    با سلام
    @
    #include <QtGui>

    int main(int argc, char *argv[])
    {
    QApplication app(argc, argv);

    QPushButton btn;
    btn.setText( QString::fromUtf8("بستن") );
    
    btn.show();
    
    return app.exec();
    

    }
    @

    تو نمایش یونیکد مشکل داره وقتی برنامه اجرا میشه

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      سلام؛
      اول باید یونیکد فایلتو رو UTF-8 قرار بدی
      تو Qt Creator اینطوری:
      Tools -> Options -> Text Editor -> Behavior
      این یونیکد فایلی که باز است رو تغییر نمیده
      برای اون فایلتو با نوت پد یا یه ادیتور دیگه باز کن و با اون یونیکدشو تغییر بده

      p{direction:rtl; text-align:right}. Admin: اگر قبل از متن های ترکیبی فارسی و انگلیسی در فروم از سینتاکس زیر استفاده کنید، کلمات جابجا نمیشوند:
      @p{direction:rtl; text-align:right}. متن@

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt
      • Unsolved