Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-74916

cancel button cut when browse folder for Arabic language

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.9.6
    • GUI: Text handling
    • None
    • 10.11
    • macOS

    Description

      We set a browse button to open Document folder to browse. Then the window shows, there is a cancel button in the bottom, but when the os language is Aarbic, the cancel button is  cut in mac 10.11.

      We try two methods for opening folder to select. Method1 is to use qt api. Method2 is to use mac os cocoa api. The results are the same.

      method1

      strOrgPath = QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation); QString strDir = QFileDialog::getExistingDirectory( this, strTitle, strOrgPath, QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks);

      method2
      [panel beginSheetModalForWindow:nsWin completionHandler:^(NSInteger result)
      { if (result == NSFileHandlingPanelOKButton)

      { filePath= panel.URL.path.UTF8String;}

      }];
       

      In Mac os 10.11, We use method2 in Xcode and to run, the result is ok and cancel button can't be cut.

      The following attached image 1 show the right show that using Xcode to run. image 2 shows the wrong display using  QT

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            shellac chen yan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes