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

cancel button cut when browse folder for Arabic language

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.9.6
    • Fix Version/s: None
    • Component/s: GUI: Text handling
    • Labels:
      None
    • Environment:
      10.11
    • Platform/s:
      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

            • Assignee:
              esabraha Eskil Abrahamsen Blomfeldt
              Reporter:
              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