The electric field at P is superposition of the fields due to all four charges. The electric field due to the two +q charges is

E+q=D2+d2Kqcosθ1×2
E−q=D2+4d2Kqcosθ2×2
The field due to +q is towards right and the field due to −q is towards left. Also θ1≈0 and θ2≈0 .
∴Enet=E+q−E−q≈D2+d2Kq−D2+4d2Kq
=(D2+d2)(D2+4d2)Kq3d2≈D43Kqd2
E∝D41