Sorry guys & girls,

it's late and I'm tired but I have to fix something in my code, something where I could not figure out where I'm wrong.

The question is simple: How can I get a QPixmap from a QTableWidgetItem?

I have tried so many already but's all not working. Guess I should go to bed, but I'm really under pressure with that.

Why this code for example

Qt Code:
  1. QPixmap pixmap = QPixmap::grabWidget( currentItem(), 0, 0, 158, 18 );
To copy to clipboard, switch view to plain text mode 
gives me:

Qt Code:
  1. error: no matching function for call to ‘QPixmap::grabWidget(QTableWidgetItem*, int, int, int, int)’
  2. .....
  3. candidates are: static QPixmap QPixmap::grabWidget(QWidget*, const QRect&)
  4. static QPixmap QPixmap::grabWidget(QWidget*, int, int, int, int)
To copy to clipboard, switch view to plain text mode 
Where I'm to blind to the the trees in the forrest tonight?