The initial setup of multiple independent pointers in X:
http://ao2.it/en/blog/2010/01/19/poo...iple-mice-xorg
How you plumb them (or indeed if you can plumb them) into QGesture is probably covered here.