Simple drawDashedRectangle?

am i very stupid, or is there no direct way to draw a dashed rectangle?

well it is quite easy, though I’m not sure you’re necessarily being stupid by not spotting it - check out the PathStrokeType::createDashedStroke() method.