Re: [QGIS-Developer] Access to shapeDigitizeToolBar menu's text

2024-03-15 Thread Catania, Luke A ERDC-RDE-GRL-VA CIV via QGIS-Developer
lists.osgeo.org> Subject: Re: [QGIS-Developer] Access to shapeDigitizeToolBar menu's text Hi Luke, As you can see on the printed text, objects are QWigetAction, not QAction. This is because you get each category of the tool bar, where then each one contains one or more digitizing QActions.

Re: [QGIS-Developer] Access to shapeDigitizeToolBar menu's text

2024-03-06 Thread Jacky Volpes via QGIS-Developer
*Sent:* Tuesday, February 27, 2024 5:29 AM *To:* Catania, Luke A ERDC-RDE-GRL-VA CIV ; qgis-developer@lists.osgeo.org *Subject:* Re: [QGIS-Developer] Access to shapeDigitizeToolBar menu's text Hi Luke, As you can see on the printed text, objects are QWigetAction, not QAction. This is because you

Re: [QGIS-Developer] Access to shapeDigitizeToolBar menu's text

2024-03-05 Thread Catania, Luke A ERDC-RDE-GRL-VA CIV via QGIS-Developer
that, but it disables the entire icon of menus for drawing Elipses. From: Jacky Volpes Sent: Tuesday, February 27, 2024 5:29 AM To: Catania, Luke A ERDC-RDE-GRL-VA CIV ; qgis-developer@lists.osgeo.org Subject: Re: [QGIS-Developer] Access to shapeDigitizeToolBar menu's text Hi Luke, As you can see on the printed

Re: [QGIS-Developer] Access to shapeDigitizeToolBar menu's text

2024-02-27 Thread Jacky Volpes via QGIS-Developer
Hi Luke, As you can see on the printed text, objects are QWigetAction, not QAction. This is because you get each category of the tool bar, where then each one contains one or more digitizing QActions. Here is a snippet that can help you explore the tool bar: sdtb =

[QGIS-Developer] Access to shapeDigitizeToolBar menu's text

2024-02-26 Thread Catania, Luke A ERDC-RDE-GRL-VA CIV via QGIS-Developer
Trying to get access to the button menus in shapeDigitizeToolBar. from qgis.utils import iface from PyQt5.QtWidgets import QWidgetAction sdtb = iface.shapeDigitizeToolBar() i=0 for action_item in sdtb.actions(): i=i+1 print (f"{i}: {action_item}") This prints: 1: 2: 3: 4: 5: I