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.
*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
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
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 =
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