[Qt-interest] How to call javascript function from qt

Andre Somers andre at familiesomers.nl
Fri Jun 11 10:56:59 CEST 2010


On 10-6-2010 21:42, Thiago Macieira wrote:
> Em Quinta-feira 10. Junho 2010, às 14.22.09, Frank Lutz escreveu:
>    
>> What i can remember as i do had the same problem is that you have to
>> load the text with QUrl:
>> view->load(QUrl(fileinfo->absoluteFilePath()));
>> Than you do not explicit activate Javascript.
>>      
> That code above would be wrong.
>
> You meant:
> 	QUrl::fromLocalFile(fileInfo->absoluteFilePath());
>
> Starting with Qt 4.8, URLs without a scheme will no longer be considered local
> files.
>    
Wouldn't that conceivably break existing programs that upgrade to Qt 
4.8? And if so, how does that relate to the Qt promisse that upgrading 
(minor) releases will be binairy and and source compatible? While it may 
formally be both, it would constitute a regression for those programs, 
would it not?

André

-- 
Nokia Certified Qt Developer.
Interested in Qt related job offers or freelance Qt consulting work.




More information about the Qt-interest-old mailing list