Cap touch measurement using digital pin?
You don't say which microcontroller but some manufacturers offer a software library for capacitive sensing. Essentially they perform measurement similar to Qtouch technology. Library or not, yes this should be possible, but if you do it yourself you are basically replicating patented technology.