Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.9.6
-
None
-
10.11
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)
}];
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