[OpendTect_Developers] adding web links

Raman Singh raman.singh at opendtect.org
Fri Dec 16 12:56:33 CET 2011


Dear fellow developers,

I want to share with you one of the lesser known functions in OpendTect 
which can add a lot of value to your UI and at the same time is fun to 
work with.

/static bool uiDesktopServices::openUrl(const char* url);/
(include/uiBase/uidesktopservices.h)

The string 'url' can start with http://, ftp://, file:// to open a 
desired location. Alternatively, you can also start the string with 
'mailto:' to send emails directly from your code. For example,

/uiDesktopServices::openUrl(/ 
"mailto:you at yourdomain.com?subject=Hi&body=I like this app" );

Have a nice weekend!

Cheers,
Raman



-- 
- Raman K Singh
- OpendTect Developer
-
- dGB Earth Sciences
- 304, Gateway Plaza, Hiranandani Gardens, Powai, Mumbai 400 076, India
- Phone: +91 22 25704984 , Fax: +91 22 25704977, Mobile: +91 9833452542
- mailto:raman.singh at opendtect.org, http://www.opendtect.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opendtect.org/pipermail/developers/attachments/20111216/980cca17/attachment.html>


More information about the Developers mailing list