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

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.