Le 02/12/2011 12:33, Koen Deforche a écrit :
> Hey Bastien,
>
> 2011/12/2 Bastien AMIEL<bastien.am...@opencubetech.com>:
>> My open operation is triggered by a widget wich contains only WLabel's
>> (connected with slots) and i can't change it to WAnchor cause it would
>> change too many things in my app.
>>
>> How can I open the PDF file in a new tab in my onClick function?
> You're only option is to do this in JavaScript connected directly the
> clicked() event of the labels. There you can use the DOM JavaScript
> function window.open().
>
> something along these lines:
>
>   label->clicked().connect("function(o, e) {
> window.open(\"http://www.google.be\";); }");
>
> Other options are automatically blocked by popup blockers, in most browsers.
>
> Regards,
> koen
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, application performance,
> security threats, fraudulent activity, and more. Splunk takes this
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> _______________________________________________
> witty-interest mailing list
> witty-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
Ok i'll try this out thank you for your answer.

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to