[Development] QtDriveInfo module in Playground

Laszlo Papp lpapp at kde.org
Fri Mar 1 09:51:16 CET 2013


On Fri, Mar 1, 2013 at 8:42 AM, André Somers <andre at familiesomers.nl> wrote:

> Wasn't there already similar functionality in QtMobility?
> QSystemStorageInfo seems to provide similar functionality? Or did all
> that get scrapped in Qt 5?
>

Ah, you are both right:
http://qt.gitorious.org/qt/qtsystems/blobs/master/src/systeminfo/qstorageinfo.h

I just tried to build QtSystems against Qt5 (dev), but I am getting build
issues. See the details below. I believe those are fixable, so perhaps Ivan
should check if something is missing? Any plans to bring this back for Qt
5.2 or later?

Actually, since it is not yet released with Qt5, even API issues can be
fixed in there.

Laszlo

=============================

qdisplayinfo_linux.cpp: In function
'{anonymous}::Q_QGS_BACKLIGHT_SYSFS_PATH::Type*
{anonymous}::Q_QGS_BACKLIGHT_SYSFS_PATH::innerFunction()':
qdisplayinfo_linux.cpp:50:1: error: lambda-expression in unevaluated context
qdisplayinfo_linux.cpp: In lambda function:
qdisplayinfo_linux.cpp:50:1: error: types may not be defined in 'noexcept'
expressions
qdisplayinfo_linux.cpp:50:1: error: 'Size' was not declared in this scope
qdisplayinfo_linux.cpp:50:1: error: template argument 1 is invalid
qdisplayinfo_linux.cpp:50:1: error: invalid type in declaration before '='
token
qdisplayinfo_linux.cpp:50:1: error: scalar object 'qstring_literal'
requires one element in initializer
qdisplayinfo_linux.cpp: In function
'{anonymous}::Q_QGS_GRAPHICS_SYSFS_PATH::Type*
{anonymous}::Q_QGS_GRAPHICS_SYSFS_PATH::innerFunction()':
qdisplayinfo_linux.cpp:51:1: error: lambda-expression in unevaluated context
qdisplayinfo_linux.cpp: In lambda function:
qdisplayinfo_linux.cpp:51:1: error: types may not be defined in 'noexcept'
expressions
qdisplayinfo_linux.cpp:51:1: error: 'Size' was not declared in this scope
qdisplayinfo_linux.cpp:51:1: error: template argument 1 is invalid
qdisplayinfo_linux.cpp:51:1: error: invalid type in declaration before '='
token
qdisplayinfo_linux.cpp:51:1: error: scalar object 'qstring_literal'
requires one element in initializer
make[2]: *** [.obj/debug-shared/qdisplayinfo_linux.o] Error 1
make[2]: Leaving directory
`/home/lpapp/Projects/qt/qtsystems/src/systeminfo'
make[1]: *** [sub-systeminfo-make_first-ordered] Error 2
make[1]: Leaving directory `/home/lpapp/Projects/qt/qtsystems/src'
make: *** [sub-src-make_first-ordered] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130301/d383c5c5/attachment.html>


More information about the Development mailing list