What if you set tree root index as - model.index(QDir::homePath()).parent() ??
Will that solve ur purpose ?