Any way to control the layer between childwidgets and OnPaint

I’ve got an inventory grid drawn with OnPaint but it always draws over my item widgets. tried messing with layers and ZOrder but no luck