I updated my system to use the lastest RStudio version, which required to install Qt from Qt's website (https://d13lb3tujbc8s0.cloudfront.net/onlineinstallers/qt-unified-linux-x64-4.2.0-online.run), and I installed Qt Web Creator 5.12.8.
Even after removing ~/Qt and no remaining environment variables, I can't open RStudio, VLC or other software, and when opening applications from the terminal I read
Cannot mix incompatible Qt library (version 0x50c0a) with this library (version 0x50c08)
I've tried to purge all the Qt packages installed via apt-get and reinstall and the error persists.
something=VARIABLE command
This way, the variable isn't set for other apps and the default libs still work for everything else. This is strange though because you've removed everything. – mchid Feb 21 '22 at 22:35