<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>QT Creator &#8211; richliu&#039;s blog</title>
	<atom:link href="https://blog.richliu.com/tag/qt-creator/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.richliu.com</link>
	<description>Linux, 工作, 生活, 家人</description>
	<lastBuildDate>Wed, 22 Jul 2020 03:12:28 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>
	<item>
		<title>PyCharm 內執行 QT Designer 和 ui 轉 py</title>
		<link>https://blog.richliu.com/2019/02/21/3879/pycharm-%e5%85%a7%e5%9f%b7%e8%a1%8c-qt-designer-%e5%92%8c-ui-%e8%bd%89-py/</link>
					<comments>https://blog.richliu.com/2019/02/21/3879/pycharm-%e5%85%a7%e5%9f%b7%e8%a1%8c-qt-designer-%e5%92%8c-ui-%e8%bd%89-py/#comments</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Thu, 21 Feb 2019 15:10:11 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[PyCharm]]></category>
		<category><![CDATA[PyQT]]></category>
		<category><![CDATA[PyQT5]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[QT]]></category>
		<category><![CDATA[QT Creator]]></category>
		<guid isPermaLink="false">https://blog.richliu.com/?p=3879</guid>

					<description><![CDATA[<p>看了幾篇文章都有些疏漏，並沒有辦法真正的做到直接在程式內直接呼叫 External tool 做到這兩件事 都 [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2019/02/21/3879/pycharm-%e5%85%a7%e5%9f%b7%e8%a1%8c-qt-designer-%e5%92%8c-ui-%e8%bd%89-py/">PyCharm 內執行 QT Designer 和 ui 轉 py</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>看了幾篇文章都有些疏漏，並沒有辦法真正的做到直接在程式內直接呼叫 External tool 做到這兩件事<br /><br />都會有一些錯誤訊息</p>



<span id="more-3879"></span>



<p>我的環境是 Ubuntu 18.04 ，用 snap 安裝的 PyCharm <br />順便安裝 QT 相關的環境</p>



<pre class="wp-block-code"><code>$ sudo snap install pycharm-community --classic
$ sudo sudo apt install  pyqt5-dev-tools python3-pyqt5 qttools5-dev-tools</code></pre>



<p>到 File -&gt; Settings -&gt; Tools -&gt; External Tools 新增一個新的設定<br />先叫 PyUIC 吧</p>



<figure class="wp-block-image"><img decoding="async" src="https://lh6.googleusercontent.com/prjTsGWULvFAiBAjwqep2eUeuyGoKUyCXEcg6ilIuWb6s25SQEaXSEG597UumOzY3M9kZHOE8-ZVw-U6Zv8ATEHJkptQD7-dxNwgLUcmwJ8T9NlMv-Wih1xi3sdwO6s-wtJ0Okp0" alt=""/><figcaption>我都加好了</figcaption></figure>



<p>設定如下<br />Program : /usr/bin/pyuic5<br />Arguments :  $FileName$ -o $FileNameWithoutExtension$.py <br />Working Directory  : $ProjectFileDir$/$FileDirRelativeToProjectRoot$</p>



<figure class="wp-block-image"><img fetchpriority="high" decoding="async" width="697" height="760" src="https://blog.richliu.com/wp-content/uploads/2020/07/image.png" alt="" class="wp-image-4302" srcset="https://blog.richliu.com/wp-content/uploads/2020/07/image.png 697w, https://blog.richliu.com/wp-content/uploads/2020/07/image-275x300.png 275w" sizes="(max-width: 697px) 100vw, 697px" /></figure>



<p>接下來再新增一個，就叫 QT Designer <br /><br />Program : /usr/lib/x86_64-linux-gnu/qt5/bin/designer<br />Arguments :  $FileName$ <br />Working Directory : $ProjectFileDir$/$FileDirRelativeToProjectRoot$</p>



<figure class="wp-block-image"><img decoding="async" width="692" height="763" src="https://blog.richliu.com/wp-content/uploads/2020/07/image-1.png" alt="" class="wp-image-4303" srcset="https://blog.richliu.com/wp-content/uploads/2020/07/image-1.png 692w, https://blog.richliu.com/wp-content/uploads/2020/07/image-1-272x300.png 272w" sizes="(max-width: 692px) 100vw, 692px" /></figure>



<p>這樣就可以在目錄下的 .ui 檔案上選 PyUIC 將 .ui 轉成 .py <br />然後選 QT Designer 修改 .ui 檔<br /><br />你看這樣很簡單吧</p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2019/02/21/3879/pycharm-%e5%85%a7%e5%9f%b7%e8%a1%8c-qt-designer-%e5%92%8c-ui-%e8%bd%89-py/">PyCharm 內執行 QT Designer 和 ui 轉 py</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.richliu.com/2019/02/21/3879/pycharm-%e5%85%a7%e5%9f%b7%e8%a1%8c-qt-designer-%e5%92%8c-ui-%e8%bd%89-py/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>QT Creator (IDE for QT) 發表</title>
		<link>https://blog.richliu.com/2008/11/05/633/qt-creator-ide-for-qt-%e7%99%bc%e8%a1%a8/</link>
					<comments>https://blog.richliu.com/2008/11/05/633/qt-creator-ide-for-qt-%e7%99%bc%e8%a1%a8/#respond</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Wed, 05 Nov 2008 06:23:33 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[QT Creator]]></category>
		<guid isPermaLink="false">http://blog.richliu.com/?p=633</guid>

					<description><![CDATA[<p>根據 KDE.news 的報導, New Qt Creator IDE from Qt Software QT [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2008/11/05/633/qt-creator-ide-for-qt-%e7%99%bc%e8%a1%a8/">QT Creator (IDE for QT) 發表</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div><a class="internal-link" title="Qt Creator: Welcome Screen" href="http://trolltech.com/images/developerzone/welcome.png/image_view_fullscreen" target="_blank" rel="noopener"><img decoding="async" class="image-inline image-inline alignleft" src="http://trolltech.com/images/developerzone/welcome.png/image_mini" alt="Qt Creator: Welcome Screen" width="200" height="140" /></a></div>
<p>根據 KDE.news 的報導, <a href="http://dot.kde.org/1225455418/" target="_blank" rel="noopener">New Qt Creator IDE from Qt Software</a></p>
<p>QT Software(Trolltech) 發表了一個新的 Qt Software IDE<br />
看起來介面很漂亮, 但是為什麼沒有整合 QT Designer 進去呢?<br />
期待正式 announce 時, 會更完整.</p>
<p>這邊有影片和照片. <a href="http://trolltech.com/developer/qt-creator" target="_blank" rel="noopener">Technology Preview &#8211; Qt Creator </a></p>
<p>我個人在沒有整合型的 UI Designer 時, 我會很懶得去開發 Unix 下 GUI 的軟體, 還是用用 printk<br />
就好了. 反正 kernel debug 有 console 出來就容易多了.</p>
<p>之前 <a href="http://www2.borland.com.tw/nw02080901.html" target="_blank" rel="noopener">Kylix</a> 就弄得很不錯, 不過如果在這個年代發表, 應該用的人會更多, 產品也會更成熟. 只能說生不逢時.</p>
<p>目前看起來還是要自己努力刻, 希望等正式版出來會好一點.</p>
<p>Qt Creator 我只在 kubuntu 8.0.4下成功執行, Gentoo 會有問題, 但是不確定是因為我是安裝 QT 4.4.2 的關係還是其他的.</p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2008/11/05/633/qt-creator-ide-for-qt-%e7%99%bc%e8%a1%a8/">QT Creator (IDE for QT) 發表</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.richliu.com/2008/11/05/633/qt-creator-ide-for-qt-%e7%99%bc%e8%a1%a8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
