In Newtons II law the force F acting on a body may depend on time, position and velocity but not acceleration. Otherwise the parallelogram principle doesn't operate for partial accelerations. And what about generalized force Q? May it depend on second time derivative d2q/dt2 of gen. coordinate?