As already pointed out, Qt
itself does not provide such a module. There is however a user-made class called QDeviceWatcher
. I have no experience with it personally and it is not updated regularly but you could give it a try.
You can find the forum post here and the git repository here.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…