Hi,
Thanks for the quick response.
Plannin inherits QMainWindow:

Qt Code:
  1. class Planning : public QMainWindow
To copy to clipboard, switch view to plain text mode 

I have changed the action so that it does not pass a parameter.
I have also realized that to trigger the paintEvent I need to QWidget::repaint():

Qt Code:
  1. void Planning::paintNodes()
  2. {
  3. PaintNodes=true;
  4. QWidget::repaint();
  5. }
  6.  
  7. void Planning::paintConnections()
  8. {
  9. PaintConnections=true;
  10. QWidget::repaint();
  11. }
To copy to clipboard, switch view to plain text mode 

My paintEvent is as follows:
Qt Code:
  1. void Planning::paintEvent(QPaintEvent *event)
  2. {
  3. QPainter paintme(this);
  4. paintme.drawLine(QLineF(10.0, 80.0, 90.0, 20.0));
  5. }
To copy to clipboard, switch view to plain text mode 

and it is defined in the header as such:
Qt Code:
  1. protected:
  2. void paintEvent(QPaintEvent * event);
To copy to clipboard, switch view to plain text mode 

Now the program seems to compile but the line does not get drawn. It does not draw on the base window or even after loading of an image as a background pixmap.
Any thoughts?