Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
こんにちは、Qtで指定したフォルダーを開く方法を教えてもらえますか?
lineEdit で次のようにフォルダーパスを定義するとします
D:/MyFolder
次に、プッシュボタンを使用してこのフォルダを開くにはどうすればよいですか? そのために何を使用すればよいですか?
次を使用できます。
QDesktopServices::openUrl(QUrl::fromLocalFile(yourFolderPath));
あなたのボタンに接続されたスロットの内側。