Hi again,

probably a really simple question, but I have searched the web for quite a while now, without resolving it:
Qt Code:
  1. void Field::paintEvent(QPaintEvent *)
  2. {
  3. QPainter *painter;
  4. (*painter).begin(this);
  5. }
To copy to clipboard, switch view to plain text mode 

This doesn't work (I get no compile error, just a warning message "uninitialized local variable 'painter' used". When I run it however, the error message pops up: "read access violiation...". ) However, if I remove the asterix it works. Looking forward to an answer...