GithubHelp home page GithubHelp logo

Comments (6)

hamiltoncj avatar hamiltoncj commented on June 17, 2024

@mclucky I'm not sure what is needed for an 'ObjectName'? How are you trying to implement this? Is there an example plugin that does what you need? I could look at it to see what they did.

The Search Layers plugin was written for 2.x to fill a lack in the search capabilities. QGIS 3 has greatly improved searching; however, it still does not search across all layers and all field. I have been debating whether I should port it to QGIS 3 or not. At that point I have not had any requests to do so.

from qgis-searchlayers-plugin.

mclucky avatar mclucky commented on June 17, 2024

If you look at settings-customize you get the treeview with all toolbars, menus and tools.
The first column of this treeview is objectName.
Most of the actions use an objectName like "mAction...".
We make use of that concept and reference standard tools and tools of other plugins by their objectName property. You can set it with setObjectName.

Regarding QGIS 3, we are currently migrating our own plugin too. If you will provide your plugin for QGIS 3 we would appreciate it.

from qgis-searchlayers-plugin.

hamiltoncj avatar hamiltoncj commented on June 17, 2024

I see Search Layers under Menus->mPluginMenu->SearchLayers. It is also under Toolbars->mPluginToolBar->SearchLayers so it is there, but am I missing something.

from qgis-searchlayers-plugin.

mclucky avatar mclucky commented on June 17, 2024

I'll provide you a screenshot, there you see it. Your tools did not provide an ObjectName, there is an empty string. Most of the other plugin tools as well as QGIS standard tools provide an ObjectName. @
unbenannt

from qgis-searchlayers-plugin.

hamiltoncj avatar hamiltoncj commented on June 17, 2024

Thanks for that. It looks like very few plugin developers outside of the core plugins have given object names. I just uploaded version 0.2.2 of the Search Layers plugin. If you have contacted others, I'm sure it would be useful to them to know how to fix this by telling them to add the object name right after they create the menu actions ie. self.action.setObjectName('pluginActionObjectName')

It may take a few minutes before the plugin repo is updated to reflect the 0.2.2 update. Let me know if this solves this issue.

from qgis-searchlayers-plugin.

mclucky avatar mclucky commented on June 17, 2024

Thank you for fixing this issue and gave us this hint.
Now everything works as expected and we're able to reference your tool with the given ObjectName.

from qgis-searchlayers-plugin.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.