[Qt-interest] QFileDialog: native + sheet (Window modal) not possible?
Oliver.Knoll at comit.ch
Oliver.Knoll at comit.ch
Thu Jan 27 18:01:56 CET 2011
On 2011-01-27 Andre Andre Somers wrote:
>> ...
>> So is the statement correct: "With Qt 4.7.1, *native* "window modal" aka "sheet"
>> file dialogs are not possible." - or am I missing something here?
> You
> are assuming that the behaviour on Windows, where using the non-static
> method will always result in a Qt dialog box instead of the native one,
> is automatically the same as how Qt would behave on Mac.
Yes, correct, that is my assumption so far ;) Backed up by the statement "Yes, if you look at the Qt source code it is evident that only the static functions uses native file dialogs. It is not possible to get native dialogs any other way, unfortunately..." (http://stackoverflow.com/questions/2609119/qt-qfiledialog-native-dialogs-only-with-static-functions)
Off course I must admit that a) I did not look at the Qt sources myself and b) whether that also applies to the Mac Qt sources...
> I don't think
> you can draw that conclusion, but I don't have access to a Mac to try it
> out.
I will have this evening ;) And off course I'll let the list know of my findings.
> I think your conclusion that sheet-style file dialogs on Mac are
> not possible would already be an indication that you're probably wrong
> on this one.
...with the emphasis on *native* file dialogs yes.
But off course I agree with you, I would also be very surprised to see on Qt/Mac that native sheet-style file dialogs are not possible! So my hope is also that at least on Mac I get the native dialog with
QFileDialog *fd = new QFileDialog(...);
fd->open(...);
> At least, I would be very surprised if it would be
> impossible to make a native looking modal file dialog on Mac.
Well, let's say "native dialog" instead of "native looking", to make sure we are referring to the same thing ;)
Anyway, that's what I am going to find out tonight.
But at least on Windows you would agree so far that it is not possible to create "Window modal" *native* dialogs ("Window modal": only the parent widget is blocked, not the entire application), right? Unless I am overseeing the obvious here...
Thanks,
Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22
More information about the Qt-interest-old
mailing list