PyQt QTreeWidget 'expanded' signal not being caught -
I have just started maintaining a set of embedded Python plugins for a Qt application. I am also new to both PyQt and Python, so bear with me
I have an implementation of a Curiere Visit in a dialog where the "extended" sign is not being caught by this handler. I have another dialog where it works fine
In the problem dialog, I can verify that the connection was successful
connected = wdg.connect (wdg.treeView_, signal ("extended (curio viewim *)" ), Wdg.expanded) evaluates to correct when I click on the child's indicators to expand an item, then the [+] turns the signals down But nothing happens, similarly, when I click on [-], then it goes back to [+] Etr set indicator to show both positions at the beginning to set policy.
The dialog that works fine when the user clicks on the plus sign, the 'extended' handler is executed.
def extended (auto, item): logging.debug (in "extended handlers") I have a breakpoint on the logging call, but the statement never arrives.
I have unsuccessful communication, I have another signal that is connected just before the above, and it works just fine:
wdg.connect (wdg.treeView_ , Signal ("The current ITEM has been changed (QTreeWidgetItem *, QTreeWidgetItem *)"), wdg.itemChanged) Is there anything that can prevent an extended signal from firing or holding? Could? Maybe another event? What should I look for? I know that my nomenclature can be a bit far away, and I also welcome any improvement in that regard.
A QTreeView extension is the signal for the event.
Alternatively, consider using it. I find it easier than searching the exact logic type for a particular signal.
wdg.treeView_.expanded.connect (wdg.expanded)
Comments
Post a Comment