<div dir="ltr"><br><div class="gmail_quote"><div dir="ltr"><div>Dear,</div><div><br></div><div>I try to follow instructions from KDE Solid web page but after some problem to build Solid without error return by VS2015. (other guy had same issue on linux)<br></div><div><br></div><div> When I add :</div><div><br></div><div>QT += Solid <br></div><div><br></div><div>on my project and run it, I always have error : LNK1181: cannot open input file 'Files.obj'.</div><div><br></div><div>But strangely, without that 
QT += Solid 

, I'm able to use Solid in my QML with:</div><div><br></div><div>

<pre style="margin:0px;text-indent:0px"><span style="color:rgb(128,128,0)">import</span><span style="color:rgb(192,192,192)"> </span>org.kde.solid<span style="color:rgb(192,192,192)"> </span>1.0<span style="color:rgb(192,192,192)"> </span>as<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">Solid<br><br></span></pre><pre style="margin:0px;text-indent:0px"><span style="color:rgb(128,0,128)"><font color="#000000">Other problem,<br><br></font></span></pre><pre style="margin:0px;text-indent:0px"><span style="color:rgb(128,0,128)"><font color="#000000">Using:
<span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,0,128)">Solid.Devices</span><span style="color:rgb(192,192,192)"> </span>{
<span style="color:rgb(192,192,192)">            </span><span style="color:rgb(128,0,0)">id</span>:<span style="color:rgb(192,192,192)"> </span><span style="font-style:italic;color:rgb(0,0,0)">allDevices</span>
<span style="color:rgb(192,192,192)">            </span><span style="color:rgb(128,0,0)">onDeviceAdded</span>:<span style="color:rgb(192,192,192)"> </span><span style="font-style:italic;color:rgb(0,85,175)">console</span>.log(<span style="font-style:italic;color:rgb(0,0,0)">allDevices</span>.count)
<span style="color:rgb(192,192,192)">            </span><span style="color:rgb(128,0,0)">onCountChanged</span>:<span style="color:rgb(192,192,192)"> </span><span style="font-style:italic;color:rgb(0,85,175)">console</span>.log(<span style="font-style:italic;color:rgb(0,0,0)">allDevices</span>.count)
<span style="color:rgb(192,192,192)">            </span><span style="color:rgb(128,0,0)">onDeviceRemoved</span>:<span style="color:rgb(192,192,192)"> </span><span style="font-style:italic;color:rgb(0,85,175)">console</span>.log(<span style="font-style:italic;color:rgb(0,0,0)">allDevices</span>.count)
<span style="color:rgb(192,192,192)">        </span>}<br><br></font></span></pre><pre style="margin:0px;text-indent:0px"><span style="color:rgb(128,0,128)"><font color="#000000">nothing is returned in console.log...<br><br></font></span></pre><pre style="margin:0px;text-indent:0px"><span style="color:rgb(128,0,128)"><font color="#000000">But with:<br>
<span style="color:rgb(128,0,128)"><font color="#000000"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,0,128)">Solid.Devices</span><span style="color:rgb(192,192,192)"> </span>{
<span style="color:rgb(192,192,192)">            </span><span style="color:rgb(128,0,0)">id</span>:<span style="color:rgb(192,192,192)"> </span><span style="font-style:italic;color:rgb(0,0,0)">allDevices</span>
<span style="color:rgb(192,192,192)">            </span><span style="color:rgb(128,0,0)">onCountChanged</span>:<span style="color:rgb(192,192,192)"><span style="color:rgb(128,0,128)"><font color="#000000"><span style="color:rgb(128,0,128)"><font color="#000000"><span style="color:rgb(192,192,192)"><span style="color:rgb(128,0,128)"><font color="#000000"><span style="font-style:italic;color:rgb(0,0,0)">number</span></font></span></span></font></span></font></span></span>.text(<span style="font-style:italic;color:rgb(0,0,0)">allDevices</span>.count)<br>        }<br>       </font></span>  <span style="color:rgb(192,192,192)"></span><span style="color:rgb(128,0,128)">Text</span><span style="color:rgb(192,192,192)"> </span>{
<span style="color:rgb(192,192,192)">            </span><span style="color:rgb(128,0,0)">id</span>:<span style="font-style:italic;color:rgb(0,0,0)">number</span>
<span style="color:rgb(192,192,192)">            </span><span style="color:rgb(128,0,0)">color</span>:<span style="color:rgb(0,128,0)">"black"</span>
<span style="color:rgb(192,192,192)">            </span><span style="color:rgb(128,0,0)">text</span>:<span style="color:rgb(192,192,192)"> </span><span style="font-style:italic;color:rgb(0,0,0)">allDevices</span>.count
<span style="color:rgb(192,192,192)">        </span>}</font></span></pre><pre style="margin:0px;text-indent:0px"><span style="color:rgb(128,0,128)"><font color="#000000"><br></font></span></pre></div><div>I got 13 display, after insert usb device, nothing change but after run again my project, the number go to 15, then allDevices.count is working but no signal is received.</div><div><br></div><div>Why I don't have any signal working with onAdded or CoundChanged or Removed?</div><div><br></div><div>Why the error with QT += Solid ?</div><div><br></div><div>Kind regards</div><div><br></div><div>Philippe<br></div><div>-- <br><div dir="ltr" class="m_-8073578903947230202gmail_signature"><div dir="ltr"><div><div dir="ltr"><p style="margin-left:9pt"><span style="font-family:Stencil"></span> </p>

<p style="margin-left:9pt"><span style="font-family:Stencil">Tel :
+33 (0) 689 216 017</span></p>

<p style="margin-left:9pt"><span style="font-family:Stencil">@ :
</span><span style="font-family:"Arial Black""><a href="mailto:filipdns@gmail.com" target="_blank">filipdns@gmail.com</a></span><span style="font-family:Stencil"></span></p></div></div></div></div></div></div>
</div><br><div dir="ltr"><div><div dir="ltr"><p style="margin-left:9pt"><span style="font-family:"Arial Black""></span><span style="font-family:Stencil"></span></p></div></div></div></div>