So möchte ich z.B. Sachen wie:
Code: Alles auswählen
QDir dir("example");
if (!dir.exists())
qWarning("Cannot find the example directory");Code: Alles auswählen
if (!QDir::exists("example"))
qWarning("Cannot find the example directory");Allerdings stolpere ich jetzt über Folgendes. Während dieser Code anstandslos kompiliert wird:
Code: Alles auswählen
bool tz = QFile::exists("bla");Code: Alles auswählen
bool tz = QDir::exists("bla");Benutze Qt 4.1