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 With french Buttom's label
Forum Updated to NodeBB v4.3 + New Features

QMessageBox With french Buttom's label

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.7k 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.
  • Q Offline
    Q Offline
    Qt_Tunisia
    wrote on last edited by
    #1

    Hi everyone,

    In my application i have a QMessageBox, unfortunately i can't modify the buttom's label wich still remain in english ('ok' instead of 'Oui' etc...) is there some way that could respond to my will ?
    Thank you

    @
    QMessageBox msgBox;
    QString Dir = QFileDialog::getExistingDirectory(this, tr("Chargement de repertoire"), "/home", QFileDialog::ShowDirsOnly|QFileDialog::DontResolveSymlinks);
    if (Dir.count() > 0)
    msgBox.setText("Path Non Nulle");
    else
    msgBox.setText("Path Nulle");
    msgBox.exec();
    @

    1 Reply Last reply
    0
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #2

      Have a look at this "FAQ":http://qt-project.org/faq/answer/how_can_i_translate_the_ok_and_cancel_buttons_when_using_the_static_qmessag

      Qt Certified Specialist
      www.edalsolutions.be

      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