Qt 6.11 is out! See what's new in the release
blog
Include Qt System Info
Installation and Deployment
6
Posts
2
Posters
3.0k
Views
1
Watching
-
I have installed libqt5systeminfo5 on Ubuntu 14.04.
How can I include qbatteryinfo in my source code?
Thanks.
-
Hi,
In your pro file add
@QT += systeminfo@
Then you should be good to go
-
Thanks.
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 ?