<div dir="ltr"><div>Hi,</div><div><br></div><div>You should try:</div><div>from qgis.gui import QgsFileWidget</div><div>It's in the GUI library: <a href="https://qgis.org/api/classQgsFileWidget.html">https://qgis.org/api/classQgsFileWidget.html</a></div><div><br></div><div>For PyCharm on Ubuntu, I used the normal launcher. Then I have setup a venv called "QGIS3" that I can use in all my plugins and project related to QGIS. In the venv, I added <br></div><div>/home/etienne/dev/qgis/build/master/output/python</div><div>to my interpreter paths. It works well for autocompletation. You may need to restart pycharm and/or to force PyCharm to scan these libraries.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mar. 3 sept. 2019 à 18:04, Shane Carey <<a href="mailto:careyshan@gmail.com">careyshan@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Thanks Mario,</div><div><br></div><div>I'm on Ubuntu.</div><div>Cheers<br></div><div><div><div dir="ltr" class="gmail-m_-2252501764643753550gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Le gach dea ghui,<br></div><div><span style="color:rgb(61,133,198)"><b><span style="background-color:rgb(255,255,255)"><i>Shane Carey</i></span></b></span></div><div><span style="color:rgb(61,133,198)"><b><span style="background-color:rgb(255,255,255)"><i>GIS and Data Solutions Consultant</i></span></b></span><br></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 3, 2019 at 4:21 PM Mario Baranzini <<a href="mailto:mario@opengis.ch" target="_blank">mario@opengis.ch</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hi Shane, <br></div><div>are you using Linux or other systems?<br></div><div><br></div><div>Here there are my notes on how to configure PyCharm for pyqgis development from when I used PyCharm and Gnome: <a href="https://marioba.gitlab.io/blog/post/2018-04-12-pyqgis-autocompletion-pycharm/" target="_blank">https://marioba.gitlab.io/blog/post/2018-04-12-pyqgis-autocompletion-pycharm/</a><br></div><div><br></div><div>I Hope that helps.<br></div><div><br></div><div>Cheers <br></div><div>Mario</div><div><br></div><div id="gmail-m_-2252501764643753550gmail-m_-8027808044080273156editorUserSignature" style="display:none"><br></div><div><br></div><div><br></div><div><i>03 September 2019 16:53 Shane Carey <<a href="mailto:careyshan@gmail.com" target="_blank">careyshan@gmail.com</a>> wrote:</i><br></div><blockquote class="gmail-m_-2252501764643753550gmail-m_-8027808044080273156infmailquote"><div dir="ltr"><div>Hi all,<br></div><div>For a few days now, I have been trying to setup PyQt and QGIS without much success. So I have tried to create a ui using QT designer and from there create my python file using pyuic5:<br></div><div>When I go to run it in PyCharm, I get the following:<br></div><div>No module named 'qgsfilewidget'<br></div><div><br></div><div>And the error is coming from:<br></div><div>from qgsfilewidget import QgsFileWidget<br></div><div><br></div><div>Could some please tell me how to setup PyCharm with QGIS please as I am unable to find anything useful on google.<br></div><div><br></div><div>Thanks<br></div><div><div dir="ltr" class="gmail-m_-2252501764643753550gmail-m_-8027808044080273156gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Le gach dea ghui,<br></div><div><span class="gmail-m_-2252501764643753550gmail-m_-8027808044080273156colour" style="color:rgb(61,133,198)"><b><span class="gmail-m_-2252501764643753550gmail-m_-8027808044080273156highlight" style="background-color:rgb(255,255,255)"><i>Shane Carey</i></span></b></span><br></div><div><span class="gmail-m_-2252501764643753550gmail-m_-8027808044080273156colour" style="color:rgb(61,133,198)"><b><span class="gmail-m_-2252501764643753550gmail-m_-8027808044080273156highlight" style="background-color:rgb(255,255,255)"><i>GIS and Data Solutions Consultant</i></span></b></span><br></div></div></div></div></div></div></div></div></div><div><><br></div></blockquote><div><br></div></blockquote></div>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote></div>