Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How can we close the opend Url through program?



  • I am using
    @QDesktopservice :: openurl(url);@ to open url.
    How can i close that through user defined code?



  • Well, I think there is no easy way of doing that. At first sight I would say use QProcess to spawn the external process on your own. Take a look at qdesktopservices.cpp on how to do this in a platform-independent manner.


Log in to reply