Comments (6)
@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.
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.
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.
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. @
from qgis-searchlayers-plugin.
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.
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)
- Please explain plugin usefulness HOT 7
- Wrong answer after search HOT 2
- No Search Layer Toolbar Icon - QGIS 3.10 LTR & QGIS 3.16.3 HOT 2
- Adding "visible layer" HOT 7
- Are there any plans to make it multilingual? HOT 4
- Realization of custom settings for each project HOT 9
- Addition of adding open-form from the results context menu HOT 13
- Possibility to use search fields option with "All Layers" option selected HOT 3
- Plugin no longer published on QGIS server? HOT 6
- Stop illegally spying on hundreds of millions of people world wide HOT 1
- Uncaught NameError: global name 'showErrorMessage' is not defined HOT 1
- Datasecurity NSA HOT 1
- Granularity on Large Feature Counts HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qgis-searchlayers-plugin.