Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Include Qt System Info
I have installed libqt5systeminfo5 on Ubuntu 14.04.
How can I include qbatteryinfo in my source code?
In your pro file add
@QT += systeminfo@
Then you should be good to go
I have tried it, but I have only gotten this error:
bq. Unknown module(s) in QT: systeminfo
I have installed it on a 64 bit Ubuntu 14.04 (GCC 64 bit) with
@sudo apt-get install libqt5systeminfo5@
Are you using the Qt 5 libs from your distribution or one of the packages from this site ?
I'm not sure. But I think I installed the libs from my distribution. When I try to install qt5 with
@sudo apt-get install qt5-default@
, I get qt5-default is already the newest version.
Just to be sure, are you also using that version of Qt for your project ?