Opened 15 years ago

Closed 15 years ago

#1654 closed bug (fixed)

SIGNAL ( activated ()) in plugins is deprecated and cause plugins malfunction

Reported by: vince Owned by: nobody
Priority: major: does not work as expected Milestone: Version 1.0.3
Component: Python plugins and bindings Version: Trunk
Keywords: Deprecated signal used Cc: carson.farmer@…
Must Fix for Release: No Platform: OS X
Platform Version: Awaiting user input: no

Description

At several places in the plugins code, the activated () signal of the QAction class is used to signal the plugin it has been activated. This is wrong : this signal has disappeared from Qt4 and if QT4 is not compiled with the Qt3 backward compatibility, it is simply non existent, so no plugin can be called at all.

Please replace activated () by triggered () (It fixes the bug).

Change History (5)

comment:1 by pcav, 15 years ago

Cc: carson.farmer@… added
Milestone: Version 1.0.3

comment:2 by vince, 15 years ago

The same bug exists in various python plugins. It should be notified to plugin writers and maybe added on the Wiki

comment:3 by lutra, 15 years ago

Was this note already included in the documentation for pluging writers?

comment:4 by pcav, 15 years ago

Component: C++ PluginsPython plugins and bindings

comment:5 by dassau, 15 years ago

Resolution: fixed
Status: newclosed

added a small section to the "Writing a QGIS Plugin in Python" section of the coding & compilation guide.

Otto

Note: See TracTickets for help on using tickets.