hi all
i am using QT4.1 on Mac
i had drawn four column using QPainter class
and drawn some text in them
now i want to select the particular portion of text from that table just same as like QtextEdit ,in TextEditparticular selected portion get pink color,

how the same is possible using QPainter and QMouseEvents??
do tell me with siple code example if anyone know??

thanks in advance....