I'm using QFile to read/write /dev/cpu/X/msr, however ring0 is required. QFile is being called from a separate QThread.

Is there a way to escalate either QFile to root privileges, or maybe start a QThread as root?

I can run the entire application as root using sudo or gksudo, however this is not desired since not all situations require read/write to msr.