qtdiag: use QLibraryInfo::paths()


There may be multiple paths, not just one, in the qt.conf (which isn't
likely for qtdiag, but....)

Drive-by move the semi-colon to the macro's caller.

Pick-to: 6.12
Change-Id: I708c28a71a5040d0f54bfffdee36fc012080958f
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
commitbf6f897c4febf3b3130f8c28f77a8b00dd65b07e
parent5713a2c20d1c597e564a0c0f2511c9d2d3348594
authorThiago Macieira <thiago.macieira@intel.com>
committerThiago Macieira <thiago.macieira@intel.com>
commit timeMon, 29 Jun 2026 18:07:07 +0000