Hello!

I would like to copy-paste the content of a QTable. For the moment, I'm using this code :
//imprimer dans le clipbord
QPixmap pixmap = QPixmap::grabWidget(this);
QPainter p;
p.begin(&pixmap);
p.drawPixmap(0,0,pixmap);
p.end();

//Affectation de l'image au clipboard
QClipboard *cb = QApplication::clipboard();
cb->setPixmap(pixmap);
but if you take a look at the result :



I would like to see only the Qtable and not the buttons and the border for example.