You are not logged in.

dfmax

Beginner

  • "dfmax" started this thread

Posts: 13

Location: Slovenia

  • Send private message

1

Thursday, November 4th 2004, 9:02pm

QT signals

I need some help on QT signals! Well my problem is, I don't know how to make use of their arguments. I'm trying to use the folowing singnal:

Source code

1
void KProcess::receivedStdout ( KProcess * proc,  char * buffer, int buflen) 


So the KDE API documentation says that is recommended to copy the information contained in buffer to your private data structures.

the example is the folowing:

Source code

1
QString myBuf = QString::fromLatin1(buffer, buflen);

Where do I must add this line to make it work?

Thank you for all the help! :)

jacek

Trainee

Posts: 105

Location: Warsaw, Poland

Occupation: Student

  • Send private message

2

Thursday, November 4th 2004, 9:04pm

RE: QT signals

In your slot that receives this signal.