Hi there,
WP SlimStat already tracks that kind of URLs, so you technically don't need any "custom filter" to monitor those visits. You may use whatever URL params you like, maybe something like:
http://yourwebsite/target_page?fromqrcode
Then, in WP SlimStat, enable the filter where PERMALINK contains fromqrcode
:) It's that easy, yes!
Camu