[Paraview-developers] using File>Open dialogue in custom filter

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Mon Apr 27 09:26:39 EDT 2015


Simply add the "FileListDomain" to the property as done for the QFileName
property here:
https://gitlab.kitware.com/paraview/paraview/blob/master/ParaViewCore/ServerManager/SMApplication/Resources/readers.xml#L2659-2667


On Mon, Apr 27, 2015 at 6:27 AM, Chiranjib Sur <sur.chiranjib at gmail.com>
wrote:

> Hi,
> I am trying to write my own filter (C++) and want to deal with reading an
> existing file. I intend implement  a functionality where file selection
> will results into popping up a window like when one does, File->Open action.
>
> In the following screen capture, I want to implement that functionality so
> that when one clicks mouse inside the text box, File->Open windows will
> popup and the user can select the file he/she wants. (The alternative is to
> provide the file name by typing which is error prone and I want to avoid
> that)
>
> [image: Inline image 1]
>
> After reading various posts from the previous mailing threads and the
> other documentation, I narrowed down my idea to use the class pqFileDialog.
> Is this the right choice or are there some alternatives? Are there any
> place where, I can read and learn about usage of this class ?
>
> Google search points me towards solutions in pure Qt which looks like :
>
>
> http://stackoverflow.com/questions/14372012/qt-standard-dialogs-example-open-file
>
>
> Any suggestions from the experts?
>
> Thanks,
> Chiranjib
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at:
> http://markmail.org/search/?q=Paraview-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20150427/cb362906/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 3734 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20150427/cb362906/attachment.png>


More information about the Paraview-developers mailing list