Is this a standard QR? Assuming everything is aligned and rub free, the issue is made worse by the lawyer tabs and the varying amount of torque placed by the skewer. Count the number of full revolutions needed to clear the fork tabs, when re attaching the wheel use the same number of revolutions with the skewer in the same position. If it rubs, try releasing the skewer, turning it about 1/8 rev in either direction and try again.