qt-interest@trolltech.com
[Top] [All Lists]

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

Subject: Re: [Qt-interest] How to call javascript function from qt
From: Thiago Macieira
Date: Thu, 10 Jun 2010 21:42:28 +0200
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.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
_______________________________________________
Qt-interest mailing list
Qt-interest@xxxxxxxxxxxxx
http://lists.trolltech.com/mailman/listinfo/qt-interest
<Prev in Thread] Current Thread [Next in Thread>