Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. qmessagebox button Internationalisation?
Qt 6.11 is out! See what's new in the release blog

qmessagebox button Internationalisation?

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 557 Views
  • 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.
  • M Offline
    M Offline
    Mr Pang
    wrote on last edited by
    #1

    Hi, guys. I have a question.

    QMessageBox msgBox;
    msgBox.setText(tr("Save?"));
    msgBox.setStandardButtons(QMessageBox::Save | QMessageBox::Discard | QMessageBox::Cancel);
    

    How to translate the three buttons?

    RatzzR 1 Reply Last reply
    0
    • M Mr Pang

      Hi, guys. I have a question.

      QMessageBox msgBox;
      msgBox.setText(tr("Save?"));
      msgBox.setStandardButtons(QMessageBox::Save | QMessageBox::Discard | QMessageBox::Cancel);
      

      How to translate the three buttons?

      RatzzR Offline
      RatzzR Offline
      Ratzz
      wrote on last edited by
      #2

      @Mr-Pang
      Something like this http://blog.matejzavrsnik.com/2010/01/translating-qdialogbuttonbox-and-qmessagebox-buttons/

      --Alles ist gut.

      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 Extensions
      • Unsolved