[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: connecting QProcess and KParts
From:       Cyrille Berger <cyb () lepi ! org>
Date:       2004-05-25 8:43:30
Message-ID: 200405251043.31208.cyb () lepi ! org
[Download RAW message or body]

> finally, the method foo::readFromStdout is defined as
>
> void foo::readFromStdout()
> {
>     m_view->openURL( proc->readStdout() );
> }
you can :
void foo::readFromStdout()
{
	m_view->setText( m_view->text() + QString(proc->readStdout()) );
}
or
void foo::readFromStdout()
{
	while( canReadLineStdout() )
	{
		m_view->setText( m_view->text() + readLineStdout ());
	}
}
I think the first one is the best, but maybe it doesn't work.
-- 
--- Cyrille Berger ---
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic