QFileDialog in c++: "no matching function for call"
<p>I want to let the user choose a folder so I can display and sort its contents somewhere else. The best way to do this seems to be using <code>QFileDialog</code>. Here's a snippet of the code I'm using:</p>

<pre><code>&gt; #include &lt;QFileDialog&gt;
.....
void someEvent(){
QString path = QFileDialog::getExistingDirectoryUrl(this, tr("Choose a Folder"), QDir::home());
}
</code></pre>

<p>When I try to compile this I get the error:<br>
no matching function for call to <code>QFileDialog::getExistingDirectoryUrl(MainWindow*, QString, QDir) path = QFileDialog::getExistingDirectoryUrl(this, tr("Choose a Folder"), QDir::home());</code></p>

<p>Note: I'm running Fedora 25 on this PC and I'm wondering whether that might be the issue?</p>