You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

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.