<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>t2y-1979</author_name>
  <author_url>https://blog.hatena.ne.jp/t2y-1979/</author_url>
  <blog_title>forest book</blog_title>
  <blog_url>https://t2y.hatenablog.jp/</blog_url>
  <categories>
    <anon>python</anon>
    <anon>pyqt</anon>
  </categories>
  <description>PyQt4 のシグナル/スロットの新旧スタイルの違いを比較するサンプル - forest book で紹介したサンプル、指定したディレクトリ配下にあるファイル数を数える簡単なアプリケーションでは、大量のファイルがあるディレクトリを指定した場合、全てのファイル数が数え上げられまで待つ必要がありました。私の環境では、数万件のファイルがあるディレクトリを指定すると数秒を要するため、ユーザビリティがよくありません。そこで QtCore.QThread *1 を継承したクラスを実装することでファイルの数え上げ処理を別スレッドで実行するようにします。 *2 先ずはサンプルコードから紹介します。 #!/us…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ft2y.hatenablog.jp%2Fentry%2F20100914%2F1284436133&quot; title=&quot;PyQt4 の UI 操作のマルチスレッド処理 - forest book&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://cdn-ak.f.st-hatena.com/images/fotolife/t/t2y-1979/20100914/20100914122831.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-09-14 12:48:53</published>
  <title>PyQt4 の UI 操作のマルチスレッド処理</title>
  <type>rich</type>
  <url>https://t2y.hatenablog.jp/entry/20100914/1284436133</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
