[Qt-interest] string is not append in text browser

Alexandre Beraud aberaud at infflux.com
Tue Feb 16 12:15:47 CET 2010


Hi,

Of course, you never let the events loop repaint the widget.
Either you append your text from another thread using a signal/slot 
mechanism, or you have to call QCoreApplication::processEvents() regularly.

Regards,

Alex


Yuvraj a écrit :
> Hi
>
> inside while loop(infinite loop), i am appending some text to text 
> browser.But text is not happening and application also hangup
>
> code
>
> QString data;
> while(1)
> {
> data =  //get from some where
>
> ui->textBrowser->append(data)    // Data is not appending in browser
>
> }
>    
>
>
>
> Thanks
>
> Yuvraj
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>   


-- 
Alexandre BERAUD
Ingénieur Développement

Infflux - Informatique & Flux
Tel: 01 49 57 92 00 - Fax : 01 49 57 92 01
Mail: aberaud at infflux.com
Visitez notre site :  www.infflux.com




More information about the Qt-interest-old mailing list