Get All Devices

This commit is contained in:
Florian RICHER 2024-01-06 15:28:55 +01:00
parent 82c7ece541
commit a17054cadc

View file

@ -5,8 +5,8 @@
#include "solid-test.h"
void SolidTest::listDevices() {
const auto devices = Solid::Device::listFromType(Solid::DeviceInterface::Unknown, QString());
for(const Solid::Device &device : devices) {
// const auto devices = Solid::Device::listFromType(Solid::DeviceInterface::Unknown, QString());
for(const Solid::Device &device : Solid::Device::allDevices()) {
// print the name of device
qInfo() << device.udi();
}