<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"> QgsExternalResourceWidget worked, the
other two not, they show the path to the image file, but not the
image. Thanks.<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">El 16/10/18 a las 8:53, Matthias Kuhn
escribió:<br>
</div>
<blockquote type="cite"
cite="mid:61b3315c-319e-df4a-8c06-3d6d2f18c8f6@opengis.ch">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>Can you try with a QLineEdit, a QLabel or a
QgsExternalResourceWidget and configure it as attachment?<br>
</p>
<div class="moz-cite-prefix">On 10/15/18 9:03 PM, Carlos Dávila
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:bf8d4bd6-317e-91a3-35c1-518fc3060aa1@orangecorreo.es">And
one more question. Adding an image widget as you describe in [1]
doesn't seem to work. I guess it's due to "Photo" type no longer
available in QGIS 3. Should it work the same with "Attachment"
type or must I do something different? <br>
<br>
[1]
<a class="moz-txt-link-freetext"
href="https://gis.stackexchange.com/questions/144427/how-to-display-a-picture-in-qgis-custom-form"
moz-do-not-send="true">https://gis.stackexchange.com/questions/144427/how-to-display-a-picture-in-qgis-custom-form</a><br>
<br>
El 15/10/18 a las 18:34, Carlos Dávila escribió: <br>
<blockquote type="cite">Hi Matthias <br>
<br>
Yes, that did the trick, thanks a lot <br>
<br>
El 15/10/18 a las 16:58, Matthias Kuhn escribió: <br>
<blockquote type="cite">Hi Carlos, <br>
<br>
something like this? <br>
<br>
<a class="moz-txt-link-freetext"
href="https://gis.stackexchange.com/a/92001/9839"
moz-do-not-send="true">https://gis.stackexchange.com/a/92001/9839</a>
<br>
<br>
On 10/15/18 4:21 PM, Carlos Dávila wrote: <br>
<blockquote type="cite">I have created a custom form using
Qt Designer for one layer, which <br>
works like a charm. Now I want to add a subform to display
features of <br>
another layer linked by a relation, but I can't find the
way to do it. <br>
Is it possible to accomplish this? <br>
<br>
</blockquote>
</blockquote>
</blockquote>
<br>
</blockquote>
<div class="moz-signature">-- <br>
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
<div class="moz-signature">
<title></title>
<div class="moz-signature"> <span style="text-align:
left;
 color: #000000; font-family: 'Verdana',
sans-serif;
 font-size: 10pt">Matthias Kuhn</span><br>
<a href="mailto:matthias@opengis.ch" target="_blank"
moz-do-not-send="true"> <span style="text-align: left;
color: #000000; font-family:
 'Verdana', sans-serif;
font-size: 8pt">matthias@opengis.ch</span> </a><br>
<span style="text-align: left; color: #000000;
font-family:
 'Verdana', sans-serif; font-size: 8pt"><a
href="tel:+41764356763" moz-do-not-send="true">+41 (0)76
435 67 63</a></span><br>
<div> <a href="http://www.opengis.ch"
moz-do-not-send="true"> <img moz-do-not-send="false"
src="cid:part5.A620375F.F32288E4@orangecorreo.es"
alt="OPENGIS.ch Logo" class="" width="200" height="80"></a>
</div>
</div>
</div>
</div>
</blockquote>
<br>
</body>
</html>