<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to open a AutoCad file from Qt]]></title><description><![CDATA[<p dir="auto">Hello, I must open autocad from Qt. How can I open a program (like Autocad) from 0t application? for example, pressing a pushbutton autocad will open.  What I want it's a link, something like an Hyperlink</p>
<p dir="auto">what do you think this:</p>
<pre><code> QProcess *autocad= new QProcess (this);
    autocad-&gt;start("C:\"Program Files\"Autodesk\"AutoCAD 2013\"acad.exe");

    qDebug()&lt;&lt;"process...."&lt;&lt;autocad-&gt;error()&lt;&lt;endl;
}
</code></pre>
<p dir="auto">whit the output:</p>
<p dir="auto">process.... QProcess::ProcessError(FailedToStart)</p>
<p dir="auto">reggards.</p>
]]></description><link>https://forum.qt.io/topic/76905/how-to-open-a-autocad-file-from-qt</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Apr 2026 12:17:46 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/76905.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 06 Mar 2017 12:40:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to open a AutoCad file from Qt on Mon, 06 Mar 2017 22:39:43 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Because you are trying to start a file and not an application. If you would like to launch the application associated with a file type then use <a href="http://doc.qt.io/qt-5/qdesktopservices.html#openUrl" target="_blank" rel="noopener noreferrer nofollow ugc">QDesktopService::openUrl</a>.</p>
]]></description><link>https://forum.qt.io/post/380181</link><guid isPermaLink="true">https://forum.qt.io/post/380181</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Mon, 06 Mar 2017 22:39:43 GMT</pubDate></item><item><title><![CDATA[Reply to How to open a AutoCad file from Qt on Mon, 06 Mar 2017 20:14:24 GMT]]></title><description><![CDATA[<p dir="auto">thanks that work! And I thought that open a autocad file it's the same as open autocad but not.</p>
<p dir="auto">I must open, for example, draw.dwg</p>
<pre><code> QString path = QStandardPaths::writableLocation(QStandardPaths::DesktopLocation);
    QProcess *autocad= new QProcess;
    autocad-&gt;setProgram(path+"Images/draw.dwg");;
    autocad-&gt;start();
</code></pre>
<p dir="auto">process.... QProcess::ProcessError(FailedToStart)</p>
]]></description><link>https://forum.qt.io/post/380166</link><guid isPermaLink="true">https://forum.qt.io/post/380166</guid><dc:creator><![CDATA[Julian]]></dc:creator><pubDate>Mon, 06 Mar 2017 20:14:24 GMT</pubDate></item><item><title><![CDATA[Reply to How to open a AutoCad file from Qt on Mon, 06 Mar 2017 16:58:05 GMT]]></title><description><![CDATA[<p dir="auto"><code>autocad-&gt;start("C:/Program Files/Autodesk/AutoCAD 2013/acad.exe");</code></p>
]]></description><link>https://forum.qt.io/post/380152</link><guid isPermaLink="true">https://forum.qt.io/post/380152</guid><dc:creator><![CDATA[VRonin]]></dc:creator><pubDate>Mon, 06 Mar 2017 16:58:05 GMT</pubDate></item><item><title><![CDATA[Reply to How to open a AutoCad file from Qt on Mon, 06 Mar 2017 16:49:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/julian">@<bdi>Julian</bdi></a> said in <a href="/post/380110">How to open a AutoCad file from Qt</a>:</p>
<blockquote>
<p dir="auto">autocad-&gt;start("C:"Program Files"Autodesk"AutoCAD 2013"acad.exe");</p>
</blockquote>
<p dir="auto">This string will read as <code>C:"Program Files"Autodesk"AutoCAD 2013"acad.exe</code> so its not what you expect,</p>
<p dir="auto">as <a class="plugin-mentions-user plugin-mentions-a" href="/user/mrjj">@<bdi>mrjj</bdi></a> already said, you have to use the correct escaping</p>
]]></description><link>https://forum.qt.io/post/380150</link><guid isPermaLink="true">https://forum.qt.io/post/380150</guid><dc:creator><![CDATA[the_]]></dc:creator><pubDate>Mon, 06 Mar 2017 16:49:41 GMT</pubDate></item><item><title><![CDATA[Reply to How to open a AutoCad file from Qt on Mon, 06 Mar 2017 16:15:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/julian">@<bdi>Julian</bdi></a><br />
Hi<br />
I think it will work better with<br />
<a href="http://doc.qt.io/qt-5/qdesktopservices.html#openUrl" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.io/qt-5/qdesktopservices.html#openUrl</a></p>
<p dir="auto">Also , in c++ you must ALWAYS have<br />
\\</p>
<p dir="auto">so it looks wrongly escaped</p>
<pre><code>autocad-&gt;start("C:\"Program Files\"Autodesk\"AutoCAD 2013\"acad.exe");
</code></pre>
]]></description><link>https://forum.qt.io/post/380146</link><guid isPermaLink="true">https://forum.qt.io/post/380146</guid><dc:creator><![CDATA[mrjj]]></dc:creator><pubDate>Mon, 06 Mar 2017 16:15:53 GMT</pubDate></item></channel></rss>