How to place widgets on an image properly ?
-
Dear Forum,
I must say that I don't know if the title describes my wish correctly. Let me show what I mean. Suppose I want to draw lines between widgets to add visual context to their meaning (f.e. comboboxes in the picture below could choose the subtree: left or right):
How do I suppose to add those black lines between the widgets (I added those lines in an image editor to demonstrate the intention) ? I've come up with a solution of changing the background. So, for example, first I place my widgets somehow and then I create a transparrent SVG with those lines and place this image behind the widgets layer. Is there a better approach ? And is it possible to achieve this using QML only ? I am not asking for a ready-to-use example --- a direction would be even better.
(Or remember the hero window in HOMM3 :)) :
Thank you in advance !
-
@Bob64 Thank you for your reply. I don't require dynamics explicitely. F.e., I don't even want the window to be resized, but I want to be sure I will not come with something messy in different language, f.e., you see.
I see there is another similar question here: https://forum.qt.io/topic/118717/how-to-draw-on-other-qwidgets