PDA

View Full Version : Qt with Flash Application



wreckx
19th November 2010, 13:18
Hello everyone,

this is my first Thread ! sorry if i do something wrong !! :D

here is my probleme:

i made a flash application (skytrain map with Price calculator between station)

-1 map with a zoom application (drag)
-Station calculator
-4 buttons (goes to different Frame etc..)

basic flash application with action script 2


what i want its to make my application work on Nokia (Qt)

so what i want to do is to put my .swf into Qt somehow and make my flash work just like it work with the flash player !! and be able to interact with it (pushing button, zoom, drag etc...) with Nokia Phone

i try for 2 days already without any good result :confused: !!

the webkit can be good but i need my application to work offline !! (that the point of making my application !! )

i use this code to display my flash online: "but i need it offline"

#include <QtGui>
#include <QtWebKit>

int main(int argc, char * argv[])
{
QApplication app(argc, argv);

QWebView view;
view.settings()->setAttribute(QWebSettings::PluginsEnabled, true);
view.load(QUrl("http://www.xxxxxxxxx.com"));
view.show();

return app.exec();
}



so can i replace the view.load(QUrl("http://www.xxxxxxxxx.com")); by anything to make it work without internet ? with prefixe or anything ? i can't make that work ..

i was thinking of make a html and embed my flash into it but how to call it offline ? any easier suggestion ? or anything else??


if you need any more details or if my post wasn't clear enought please let me know

thank you very much for your help

Max

ps: sorry for my mistakes in English !!





edit : if i put pixmap in my UI file and i add my embed page like that

-file:///D:/bts/flash.html

it show me adobe player flash update ?!!