Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2019-10

Qt5 OpenDialog/SaveDialog file filter ok?

2 messages · 1 person · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

AlexeyT

Checked on Ubuntu x64 (with its GTK based Qt5) and Fedora (KDE Plasma)
29. In my app qt5 build, OpenDialog and SaveDialog file filters are empty (while they are set in app). Confirmed?

Regards, Alexey

Reply by email

AlexeyT
to AlexeyT

Sorry, that Filter works ok.

Another question. In qt5/qtwsdialogs.pp we have

   if (AFileDialog is TSaveDialog) and (trim(TmpFilter)='()') then
     Result := ''
   else
     Result := GetUtf8String(TmpFilter);

so that empty dlg.Filter will give empty result Qt filter. Only for SaveDialog! Why only for SaveDailog? it is needed for OpenDialog too, because result "()" looks bad.

AT

Reply by email