Re: [QGIS-Developer] Open plugin automatically when file is dragged onto QGIS

2023-11-05 Thread David Signer via QGIS-Developer
You can use an eventfilter. You can find an example here
https://github.com/opengisch/QgisModelBaker/blob/master/QgisModelBaker/qgismodelbaker.py#L507C7-L552

However, it may be appropriate to have a setting for this. In the plugin
mentioned above, the user is asked if they want to open this type of file
always with this plugin in the future.

Cheers
Dave

On Sun, Nov 5, 2023 at 1:54 AM Pankajeshwara Sharma via QGIS-Developer <
qgis-developer@lists.osgeo.org> wrote:

> Hello all,
>
> I would like a feature within QGIS so that when files with ".xyz"
> extension are dragged onto the application, would make my plugin to open
> automatically.
> This can prevent the user from having to go to the File menu and open the
> file.
>
> This is similar to when shapefiles are dragged onto QGIS, and the
> shapefiles are automatically loaded and displayed in QGIS.
> Except, dragging a file with a ".xyz" extension should result in my plugin
> (a dialog box from then plugin) to open.
>
> Is there a setting I can configure?
>
> Yours sincerely,
> Pankaj Sharma
> Research Fellow
> University of Auckland
> pankaj.sha...@auckland.ac.nz
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] [Qgis-psc] Proposal: Core committer rights for Andrea Giudiceandrea

2023-08-22 Thread David Signer via QGIS-Developer
+1 from me as well.

Cheers
Dave

On Mon, Aug 21, 2023, 00:37 Nyall Dawson via QGIS-PSC <
qgis-...@lists.osgeo.org> wrote:

> Hi PSC,
>
> I'd like to propose that core committer rights are granted to Andrea
> Giudiceandrea (@agiudiceandrea, https://github.com/agiudiceandrea ).
>
> Andrea has been active in QGIS c++ development for the last 5 years,
> and has a fantastic track record of contributions. Their contributions
> demonstrate all the qualities we need for core contributors --
> attention to detail, careful consideration of the ramifications of
> changes, and a very clear dedication to making QGIS a better
> experience for end users. Time and time again, they've shown a
> willingness to just jump in and fix things directly, and QGIS would
> not be the application it is today without their contributions.
>
> Thanks for your consideration!
> Nyall
> ___
> QGIS-PSC mailing list
> qgis-...@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-psc
>
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] QgsAttributeDialog and PyQt - Signal for accept or close of dialog

2023-01-05 Thread David Signer via QGIS-Developer
Hi Andreas

QgsAttributeForm is a QWidget (no accepted there). Shouldn't myDialog be a
QgsAttributeDialog instead?

Cheers
Dave

On Thu, Jan 5, 2023 at 9:40 AM Andreas Neumann via QGIS-Developer <
qgis-developer@lists.osgeo.org> wrote:

> Hi,
>
> This concerns PyQt code. I am trying to process attribute data on
> acceptance of a QgsAttributeDialog and can't find the correct signal name
> that I could attach my function to.
>
> I tried
>
> myDialog.accepted.connect(myFunction)
>
> but it tells me
>
> AttributeError: 'QgsAttributeForm' object has no attribute 'accepted'
>
> Anyone has a hint what kind of signal I could use to process data on
> acceptance or closing of an attribute form?
>
> Thanks,
>
> Andreas
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>

-- 
 


Best of Swiss Enterprise App-Award for QField 

 
- Hold the power of QGIS in your hand - get it now 
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer