Some time ago in Plasma (I don't remember if version 4 only or 5 also), user was able to disable laptop touchpad when mouse was connected. In Plasma 5.17.5 this option is no longer available
If you feel this is not a duplicate of 415364 please re-open. *** This bug has been marked as a duplicate of bug 415364 ***