Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

CommonQt

Name: Anonymous 2011-05-29 18:48

Hello friends.

Does anyone know how to pass arguments to a class slot? Something like this:

(#_connect "QObject"
        text-append (QSIGNAL "clicked()")
        text  (QSLOT "settext(string,string)" herp derp))

I know of EMIT-SIGNAL, but in which context should I use it?

Name: Anonymous 2011-05-29 21:08

The jews are after me

Name: Anonymous 2011-05-29 21:21

>>2
Cool story, ``faggot''

Name: Anonymous 2011-05-31 2:54

>>1
1. write custom signal customClicked(string, string)
2. write custom slot emitCustomClicked()
3. emit customClicked("herp", "derp") in emitCustomClicked()
4. connect clicked() with emitCustomClicked()
5. connect customClicked(string, string) with settext(string, string)
6. ????
7. PROFIT!

Don't change these.
Name: Email:
Entire Thread Thread List