fehler wie oben beschrieben.
hier erstmal etwas code:
Code: Alles auswählen
void tool::function()
{
QFile file( "/proc/mounts" );
if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
return;
QTextStream ts( &file );
QString fileLine;
do
{
fileLine = ts.readLine();
QStringList list = fileLine.split( " ", QString::SkipEmptyParts );
QString mountPoint = list[0];
if( mountPoint == "/dev/hda6" )
QMessageBox::information( this, "", list[2] );
}
while (!fileLine.isNull());
}
Kann das evtl. jemand nachvollziehen??
danke