<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div id="yiv1590095180"><div><div style="color: rgb(0, 0, 0); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; background-color: rgb(255, 255, 255);"><div id="yiv1590095180yui_3_16_0_6_1410446055779_4" class="yiv1590095180" style="">I'm trying to execute a external command and get the stdout and show in real time in a QListView</div><div id="yiv1590095180yui_3_16_0_6_1410446055779_4" class="yiv1590095180" style="">My example code: <a rel="nofollow" target="_blank" href="http://dpaste.com/352EX9M" id="yiv1590095180yui_3_16_0_1_1410446055779_16868" class="yiv1590095180" style="">http://dpaste.com/352EX9M</a></div><div style="width: 450px; font-family: Georgia, Times, 'Times New Roman', serif; margin-top: 5px; margin-bottom: 5px;"
 id="yiv1590095180enhancrCard_0" class="yiv1590095180"><table class="yiv1590095180" cellspacing="0" cellpadding="0" border="0" style="width:450px;height:auto;display:block;" id="yiv1590095180yui_3_16_0_1_1410446055779_16759"><tbody id="yiv1590095180yui_3_16_0_1_1410446055779_16758" class="yiv1590095180" style=""><tr class="yiv1590095180" style="" id="yiv1590095180yui_3_16_0_1_1410446055779_16905"><td class="yiv1590095180" colspan="7" style="height:1px;background-color:#e5e5e5;font-size:1px;border-collapse:collapse;" id="yiv1590095180yui_3_16_0_1_1410446055779_16904"><div class="yiv1590095180" style="height:1px;background-color:#e5e5e5;font-size:1px;line-height:0px;" id="yiv1590095180yui_3_16_0_1_1410446055779_16903"> </div></td></tr><tr class="yiv1590095180" style="" id="yiv1590095180yui_3_16_0_1_1410446055779_16908"><td rowspan="5" class="yiv1590095180" style="width:1px;background-color:#e5e5e5;font-size:1pt;border-collapse:collapse;"><div
 class="yiv1590095180" style="width:1px;background-color:#e5e5e5;font-size:1pt;"> </div></td><td rowspan="5" class="yiv1590095180" style="width:14px;background-color:#ffffff;font-size:0pt;border-collapse:collapse;"><div class="yiv1590095180" style="width:14px;background-color:#ffffff;font-size:14pt;"> </div></td><td colspan="2" class="yiv1590095180" style="height:6px;background-color:#ffffff;font-size:0pt;border-collapse:collapse;" id="yiv1590095180yui_3_16_0_1_1410446055779_16907"><div class="yiv1590095180" style="height:6px;background-color:#ffffff;font-size:6pt;" id="yiv1590095180yui_3_16_0_1_1410446055779_16906"> </div></td><td rowspan="5" class="yiv1590095180" style="width:20px;background-color:#ffffff;font-size:0pt;border-collapse:collapse;" id="yiv1590095180yui_3_16_0_1_1410446055779_16913"><div class="yiv1590095180" style="width:20px;background-color:#ffffff;font-size:20pt;"> </div></td><td class="yiv1590095180" rowspan="5"
 width="1" style="width:1px;background-color:#e5e5e5;font-size:1pt;border-collapse:collapse;" id="yiv1590095180yui_3_16_0_1_1410446055779_16912"><div class="yiv1590095180" style="width:1px;background-color:#e5e5e5;font-size:1pt;"> </div></td></tr><tr id="yiv1590095180yui_3_16_0_1_1410446055779_16757" class="yiv1590095180" style=""><td class="yiv1590095180" colspan="2" style="width: 100%; vertical-align: middle; font-family: Georgia, Times, 'Times New Roman', serif;" id="yiv1590095180yui_3_16_0_1_1410446055779_16756"><div class="yiv1590095180" style="line-height:16.5px;background-color:#ffffff;width:414px;" id="yiv1590095180yui_3_16_0_1_1410446055779_16755"><div class="yiv1590095180" style="word-wrap:break-word;" id="yiv1590095180yui_3_16_0_1_1410446055779_16754"><span class="yiv1590095180" style=""></span><span class="yiv1590095180" style=""></span><a rel="nofollow" target="_blank" href="http://dpaste.com/352EX9M" class="yiv1590095180"
 style="text-decoration:none;color:#000000;line-height:100%;font-size:18px;display:block;" id="yiv1590095180yui_3_16_0_1_1410446055779_16909"><span class="yiv1590095180" style="margin:0;font-weight:normal;margin-bottom:3px;font-size:18px;line-height:21px;max-height:43px;color:#000000;overflow:hidden;display:inline-block;">dpaste: 352EX9M</span></a><div style="font-size: 13px; line-height: 20px; color: rgb(153, 153, 153); max-height: 81px; font-family: Georgia, Times, 'Times New Roman', serif; overflow: hidden;" class="yiv1590095180" id="yiv1590095180yui_3_16_0_1_1410446055779_16753">#!/usr/bin/env python
#-*- coding: utf-8 -*-

import os, sys
from PyQt4 import QtCore, QtGui, uic

# MainWindow
class Init(QtGui.QMainWindow):
    def __init__(self):
        super(Init, self).__init__()
        self.window = uic.loadUi(os.path.join(os.getcwd(), "ui/main.ui"), sel...</div></div></div></td></tr><tr id="yiv1590095180yui_3_16_0_1_1410446055779_16762" class="yiv1590095180" style=""><td colspan="2" class="yiv1590095180" style="height:6px;background-color:#ffffff;font-size:0pt;border-collapse:collapse;" id="yiv1590095180yui_3_16_0_1_1410446055779_16761"><div class="yiv1590095180" style="height:6px;background-color:#ffffff;font-size:6pt;" id="yiv1590095180yui_3_16_0_1_1410446055779_16760"></div></td></tr><tr id="yiv1590095180yui_3_16_0_1_1410446055779_16767" class="yiv1590095180" style=""><td class="yiv1590095180" style="vertical-align: middle; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;" id="yiv1590095180yui_3_16_0_1_1410446055779_16911"><div class="yiv1590095180" style="font-size:0pt;" id="yiv1590095180yui_3_16_0_1_1410446055779_16910"><a rel="nofollow" target="_blank" href="http://dpaste.com/352EX9M" class="yiv1590095180"
 style="color:black;text-decoration:none;cursor:pointer;"><span class="yiv1590095180" style="display:inline-block;line-height:11px;max-width:314px;min-width:254px;overflow:hidden;max-height:13px;" id="yiv1590095180yui_3_16_0_1_1410446055779_16750"><span class="yiv1590095180" style="vertical-align:middle;font-size:9px;line-height:11px;color:#999999;">View on <span style="font-weight:bold;" class="yiv1590095180">dpaste.com</span></span></span></a></div></td><td class="yiv1590095180" style="vertical-align: middle; width: 100px; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;" id="yiv1590095180yui_3_16_0_1_1410446055779_16766"><div class="yiv1590095180" style="max-width:100px;min-width:80px;overflow:hidden;text-align:right;line-height:11px;max-height:13px;font-size:0pt;" id="yiv1590095180yui_3_16_0_1_1410446055779_16765"><span class="yiv1590095180" style="vertical-align:middle;font-size:9px;line-height:11px;color:#999999;"
 id="yiv1590095180yui_3_16_0_1_1410446055779_16764">Preview by Yahoo</span></div></td></tr><tr id="yiv1590095180yui_3_16_0_1_1410446055779_16771" class="yiv1590095180" style=""><td colspan="2" class="yiv1590095180" style="height:9px;background-color:#ffffff;font-size:0pt;border-collapse:collapse;" id="yiv1590095180yui_3_16_0_1_1410446055779_16770"><div class="yiv1590095180" style="height:9px;background-color:#ffffff;font-size:9pt;" id="yiv1590095180yui_3_16_0_1_1410446055779_16769"></div></td></tr><tr class="yiv1590095180" id="yiv1590095180yui_3_16_0_1_1410446055779_16775" style=""><td class="yiv1590095180" colspan="7" style="height:1px;background-color:#e5e5e5;font-size:1px;border-collapse:collapse;" id="yiv1590095180yui_3_16_0_1_1410446055779_16774"><div class="yiv1590095180" style="height:1px;background-color:#e5e5e5;font-size:1px;line-height:0px;" id="yiv1590095180yui_3_16_0_1_1410446055779_16773"> </div></td></tr></tbody></table></div><div
 id="yiv1590095180yui_3_16_0_6_1410446055779_4" class="yiv1590095180" style="">It is "working", but not in real time</div><div id="yiv1590095180yui_3_16_0_6_1410446055779_4" class="yiv1590095180" style="">Some tip?</div><div id="yiv1590095180yui_3_16_0_6_1410446055779_4" class="yiv1590095180" style=""><br id="yiv1590095180yui_3_16_0_1_1410446055779_16702" class="yiv1590095180" style=""></div></div></div></div></div></body></html>