other ideas after my third coffee:

Maybe you could try with a virtual layer. I'm successfully working with
them to show me the status of to be controlled items with a
geometry-less maintenance-table. But I'm pretty confident that the same
logic would work with two geometry layers

If there was the possibility to query for that is_selected() you found,
it could be possible to just show the requested item and be otherwise
invisible. I will investigate later.

Drawback on Virtual layers is, that they seem to be not very performant,
but maybe my queries are just inefficient crap, who knows.

On 23.11.20 10:29, L.W. wrote:
and there are some disadvantages ... first you have to set the layer
active to which the symbol belongs.

there is no "is_" derivat for "get object info" (i-icon with
mouse-pointer), so nothing happened if the feautre attribute-dialog is
shown, the feature is (different) highlighted but not the same way as
"selected" (by the yellow buttons with mouse-pointer).


Am 23.11.2020 um 10:06 schrieb L.W.:
I tried a little bit with "actions" but - I think you're right - there
is no onHover.

anyway, I found a much more comfortable solution for the moment.

I add the simple term "OR is_selected()" in the if clause for my symbol
to show the changed color (in my case I draw a line between two points)
and it worked like a charme.

But, this is without the option to e.g. display a messagebox or someting
like that with additional informations of the feature (I know about map
hints/tips (I do not know the right translation).

Yes you could made an action for that, but my goal was to show this on
hover, but click is oooookay.

For X-Mas my wish in relation to QGIS is a hover event ... on feature on
map and on symbols. ;-)

Thanks for helping to everyone.


PS: Do I have to implement a Plugin to have a dockable window for
showing infos non modal on per action selected features?


Am 23.11.2020 um 09:40 schrieb Richard Duivenvoorde:
On 11/22/20 8:40 PM, Jésahel Benoist wrote:
The actions are a standard way of acting on graphical objects, so
for me it would be the first thing to try. Did you ?

Le dim. 22 nov. 2020 à 20:01, Bernd Vogelgesang
<bernd.vogelges...@gmx.de <mailto:bernd.vogelges...@gmx.de>> a écrit :

     if you would be so kind to explain the "just" part of your
proposal?
I think in the User lists it is always good to add a link to some
documentation about a QGIS-term. In this case 'actions' kan be a
normal word, but (advanced) users maybe (or not) know that it is also
something you can use to 'do something in QGIS upon a click on a
feature'.

Some documentation here:
https://docs.qgis.org/testing/en/docs/user_manual/working_with_vector/vector_properties.html#actions-menu


(or do a search on 'actions' in the QGIS docs site).
Tip: go to vector layer properties, 'Actions' tab, and hit 'Create
Default Actions' button. You will get all kind of examples.

About original post: I do not think we have an Action on hover (plz
correct me if I'm wrong), but to run some (PyQGIS) python code is
doable.
With PyQGIS you can search for features in other layers, and maybe
'select' these on click in the other layer (or change attribute,
though I'm not sure how to change it back then... )

Acutally this sounds like nice functionality for layers which have
relations... I'm not so experienced with relations in layers.

If you worked out a way to do this, plz let us know :-)

Regards,

Richard

_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to