About Replace KFileWidget with QFileDialog

Jaroslaw Staniek staniek at kde.org
Wed Apr 10 17:58:25 BST 2013


On 10 April 2013 18:45, Yuë Liu <yue.liu at mail.com> wrote:
> On Wed, Apr 10, 2013 at 12:02 PM, Jaroslaw Staniek <staniek at kde.org> wrote:
>> On 10 April 2013 15:39, Yuë Liu <yue.liu at mail.com> wrote:
>>> I'm replacing kfilewidget/dialog with qfiledialog for better cross
>>> platform support (and easier port to qt5 as a side effect), and I
>>> noticed Kexi uses kexifilewidget for file opening. Is it okay if I
>>> replace it with a "select from database" widget with an "open from
>>> file" button and launch qfiledialog from there? Or do you want to keep
>>> kexifilewidget as it is?
>>
>> Hi, I need to embed the dialog's contents, which is what KFileWidget does.
>> I wonder, isn't there KFileWidget available for KF5?
> I'm not sure how is it in KF5, the reason I want to replace is native
> file chooser on Gnome/Mac/Windows, a kfilewidget is not native dialog
> on those platforms.

Yes, I get it and support the idea of the Qt port, as you may remember
I backed it on the #1 sprint.
For now you can ifdef the code and add a #warning as this is a
critical TODO. Needs more research and not a #1 priority for now.
In Qt3 and Qt4 times I was able to embed QFileDialog as a QWidget
(even on Windows). These Qt versions mimic native look.

-- 
regards / pozdrawiam, Jaroslaw Staniek
 Kexi & Calligra & KDE | http://calligra.org/kexi | http://kde.org
 Qt Certified Specialist | http://qt-project.org
 http://www.linkedin.com/in/jstaniek



More information about the calligra-devel mailing list