<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">

  <channel>

  
  <title>Qt DevNet forums: Qt WebKit 1295018975**  </title>
  <link>http://qt-project.org/forums/viewforum/21/</link>
  <description>RSS feed for latest posts in Qt WebKit</description>
  <copyright>Copyright 2012 Qt Developer Network</copyright>
  <docs>http://www.rssboard.org/rss-specification</docs>
  <generator>ExpressionEngine v2.3.1 http://expressionengine.com/</generator>
  <lastBuildDate>Fri, 14 Jan 2011 17:29:35 GMT</lastBuildDate>
  <atom:link href="http://qt-project.org/feeds/all_forums/21" rel="self" type="application/rss+xml" />
  
  
  
        <item>
            <title>Adding objects to Web Worker context</title>
            <link>http://qt-project.org/forums/viewreply/86636</link>
            <author>eikeR</author>
            <description><![CDATA[You did not understand how Web Workers work. They have their own context and can never access the DOM or a window object &#8212; well, some say that Web Workers exist in a vacuum. See here:

	http://www.html5rocks.com/en/tutorials/workers/basics/#toc&#45;enviornment&#45;features [html5rocks.com]

	That behaviour has nothing to do with QtWebKit but is the normal Web Worker specification. An object you add with addToJavaScriptWindowObject&#40;&amp;quot;THIS_GETS_TO_THE_DOM&amp;quot;, yourObject&#41;
 

	is added to the DOM (where else should it be placed?)! So, no chance that you can access it from within your Web Worker.]]></description>
            <guid isPermaLink="false">9ed26e5d89345e50996829dec1aa675d</guid>
            <pubDate>Thu, 24 May 2012 13:45:29 GMT</pubDate>
        </item>
  
        <item>
            <title>link error with static webkit 4.8.1</title>
            <link>http://qt-project.org/forums/viewreply/86635</link>
            <author>eikeR</author>
            <description><![CDATA[did you create the .moc files with moc.exe?]]></description>
            <guid isPermaLink="false">c4c6929f58b800e545012356eccc76ae</guid>
            <pubDate>Thu, 24 May 2012 13:36:52 GMT</pubDate>
        </item>
  
        <item>
            <title>When I write a Picasa application using Webkit + HTML + Javascript, the memory cost is always increasing!</title>
            <link>http://qt-project.org/forums/viewreply/86633</link>
            <author>eikeR</author>
            <description><![CDATA[As far as I understand your page A (or some native stuff that gets executed when page A is shown) claims memory which is not freed when you exit page A (i.e. navigation to page B).

	Because it&#8217;s a hybrid application your memory leaks can occure
	
		in the web part, i.e. in your HTML pages and your JavaScript
		in the native part.
	

	Try to get rid of the native part and load your html pages in a standalone browser, like chrome, firefox, safari etc. if you see the problems there too, then it&#8217;s a leak in the JavaScript part. Of course I do not know if you can get rid of your native part and display the pages alone&#8230;? If you see it leaking it can be either an JS engine problem or (and unfortunately that&#8217;s the common case) it&#8217;s a problem in your JavaScript coding, because you have cross references or whatsoever.

	Of course it can be also a memory heap problem in your native part. Take a look if you allocate memory with new or new[] if you show page A and be sure that you did not forget the delete or  delete[] if you navigate back from your page. What about your QObject instance with which you have to populate your page A by calling addToJavaScriptWindowObject&#40;&amp;quot;YOUR_BRIDGE_NAME&amp;quot;, qObjectInstance&#41;
 

	For sure this is always done as soon as you show page A.]]></description>
            <guid isPermaLink="false">543b16676291b65a513cf97504ce530e</guid>
            <pubDate>Thu, 24 May 2012 13:31:13 GMT</pubDate>
        </item>
  
        <item>
            <title>Qt Webkit &#45; Browser Interaction issue [SOLVED]</title>
            <link>http://qt-project.org/forums/viewreply/86515</link>
            <author>AcerExtensa</author>
            <description><![CDATA[I&#8217;am glad i can help you! Please add &#8220;[SOLVED]&#8221; to the topic subject.]]></description>
            <guid isPermaLink="false">552c8b8b137b4f2c07ab9e38ec5115f4</guid>
            <pubDate>Wed, 23 May 2012 13:18:01 GMT</pubDate>
        </item>
  
        <item>
            <title>How to catch Plugin errors in QWebView</title>
            <link>http://qt-project.org/forums/viewthread/17447</link>
            <author>Ashish Mittal</author>
            <description><![CDATA[I am using QWebView to load websites which has adobe flash(e.g. youtube videos). so that QWebView interacts with Adobe flash player plugin already installed in my machine, but in case if there is any error occured  within plugin , then how to catch it in QWebView? so that at least I can display some error message to my user to take some further action.]]></description>
            <guid isPermaLink="false">d998a0700c955b7062f188de4d641b12</guid>
            <pubDate>Wed, 23 May 2012 13:15:16 GMT</pubDate>
        </item>
  
        <item>
            <title>Qt Webkit &#45; Browser Interaction issue [SOLVED]</title>
            <link>http://qt-project.org/forums/viewthread/17413</link>
            <author>s7777</author>
            <description><![CDATA[Hello everyone, I&#8217;m developing a Qt program that contains an OpenStreetMap application as a HTML page and this page is able to access a database (via submitting an ajax form that contains the start and end dates of queries) in order to retrieve and visualize queries on the map. I would like to move this querying process to Qt from the HTML/Javascript part. So far I managed to interact with the browser via Qt but I still have a problem that is below: (by the way, the database is a MySQL database on XAMPP and trying to fetch queries from the HTML window&#8217;s fetch button works &#45;although it also sometimes shows the POST failed message and then clicking again fetches and shows the queries correctly, I haven&#8217;t been able to figure that out either)

	1) The fetch queries button of Qt is clicked and an alert box is supposed to pop up saying that Ajax POST is failed (the database is not on my current laptop and I should be getting the error when I click either the HTML Browser window&#8217;s fetch queries button or the Qt&#8217;s fetch button)

	2) But also, whenever I click the Fetch queries button of the HTML Browser, it displays the POST warning but also displays extra POST warning alert boxes depending on how many times I have clicked the Qt&#8217;s Fetch queries button. (for example if I have clicked the Qt&#8217;s fetch queries button 5 times in a row and then clicked the HTML window&#8217;s fetch button once, I get 6 POST failed messages in a row, I just want the queries to be displayed when I click Qt&#8217;s fetch button instead of HTML&#8217;s fetch button)

	The HTML code is like the following:

	&amp;lt;form id=&amp;quot;ajaxForm&amp;quot; action=&amp;quot;index.php&amp;quot; method=&amp;quot;post&amp;quot;&amp;gt;
Start &amp;lt;input type=&amp;quot;text&amp;quot; name = &amp;quot;date1&amp;quot; id = &amp;quot;datepicker&amp;quot; value = &amp;quot;2011&#45;07&#45;13&amp;quot; &amp;gt;
&amp;lt;input type=&amp;quot;text&amp;quot; name = &amp;quot;time1&amp;quot; id = &amp;quot;timepicker1&amp;quot; value = &amp;quot;00:00&amp;quot; &amp;gt; 
&amp;nbsp;
End &amp;lt;input type=&amp;quot;text&amp;quot; name = &amp;quot;date2&amp;quot; id = &amp;quot;datepicker2&amp;quot; value = &amp;quot;2011&#45;07&#45;13&amp;quot; &amp;gt;
&amp;lt;input type=&amp;quot;text&amp;quot; name = &amp;quot;time2&amp;quot; id = &amp;quot;timepicker2&amp;quot; value = &amp;quot;00:01&amp;quot; &amp;gt;


	The post method of AJAX form is this:
$&#40;document&#41;.ready&#40;function&#40;&#41;&#123;
&amp;nbsp;
&amp;nbsp;// ajaxForm submit
&amp;nbsp;$&#40;&apos;#ajaxForm&apos;&#41;.submit&#40;function&#40;&#41; &#123;
&amp;nbsp; $.ajax&#40;&#123;
&amp;nbsp; &amp;nbsp;type: &apos;POST&apos;,
&amp;nbsp; &amp;nbsp;url: &apos;heatQuery.php&apos;,
&amp;nbsp; &amp;nbsp;data: $&#40;this&#41;.serialize&#40;&#41;,
&amp;nbsp; &amp;nbsp;dataType: &apos;json&apos;,
&amp;nbsp; &amp;nbsp;success: function&#40;response&#41;
&amp;nbsp; &amp;nbsp;&#123; &amp;nbsp; 
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// update the points for heatmap layer &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;updateHeatMap&#40;response&#41;;
&amp;nbsp;
&amp;nbsp; &amp;nbsp;&#125;,
&amp;nbsp; &amp;nbsp;error: function&#40;errorMsg&#41;
&amp;nbsp; &amp;nbsp;&#123;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;alert&#40;&apos;Error in Ajax POST&apos;&#41;;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&#125;
&amp;nbsp; &#125;&#41;;
&amp;nbsp;
&amp;nbsp; return false;
&amp;nbsp;&#125;&#41;;
&#125;&#41;;


	And the Qt code that calls the function is this:

	void MainWindow::onButtonClicked&#40;&#41; // clicking the button in order to POST 
&#123;
&amp;nbsp; &amp;nbsp; //the QString a is the same ajax post function as declared above
&amp;nbsp;
&amp;nbsp; &amp;nbsp; QString a = &amp;quot;$(document).ready(function()&#123;$(&apos;#ajaxForm&apos;).submit(function() &#123;$.ajax(&#123;type: &apos;POST&apos;,url: &apos;heatQuery.php&apos;,data: $(this).serialize(),dataType: &apos;json&apos;,success: function(response)&#123;updateHeatMap(response);&#125;,error: function(errorMsg)&#123;alert(&apos;Error in Ajax POST&apos;);&#125;&#125;);return false;&#125;);&#125;);&amp;quot;; 
&amp;nbsp;
&amp;nbsp; &amp;nbsp; this&#45;&amp;gt;view&#45;&amp;gt;page&#40;&#41;&#45;&amp;gt;mainFrame&#40;&#41;&#45;&amp;gt;evaluateJavaScript&#40;a&#41;;
&amp;nbsp;
&#125;


	Also, the heatQuery.php and theHeatmap.html files are in the D:/xampp/htdocs folder since server runs them. And finally, I have initialized the WebView as

	view&#45;&amp;gt;load&#40;QUrl&#40;&amp;quot;http://localhost/theHeatmap.html&amp;quot;&#41;&#41;;


	What is wrong here? Thanks.]]></description>
            <guid isPermaLink="false">a3374602bc1bb2cb9a1ee5448068087e</guid>
            <pubDate>Tue, 22 May 2012 14:09:58 GMT</pubDate>
        </item>
  
        <item>
            <title>When I write a Picasa application using Webkit + HTML + Javascript, the memory cost is always increasing!</title>
            <link>http://qt-project.org/forums/viewthread/17402</link>
            <author>qdhuxp</author>
            <description><![CDATA[I write a hybrid app to get the Picasa pictures using QT Webkit and HTML+Javascript. In my application, there are 2 html pages, one is Featured photos(I name it as A) to get pictures from Picasa, the other one(I name it as B) is a normal html page with no function. And I met a problem about the memory cost:
1. When I launch the app, A is showing, the memory size is 40M;
2. When I click an html tag to jump to B, the memory size is 38M;
3. When back to A from B, the memory size is 42M;
4. When back to B from A, the memory size is 40M;
5. When back to A from B, the memory size is 44M;

  It means when the A is showing, the memory size is added 2M. It seems like a memory leak of webkit?
  I searched a lot but has no solution. Please help!   
  Appreciate!!]]></description>
            <guid isPermaLink="false">52598a2a95548d0f62a19d0fa8f35996</guid>
            <pubDate>Tue, 22 May 2012 05:27:57 GMT</pubDate>
        </item>
  
        <item>
            <title>Implement word selection under cursor on right mouse click</title>
            <link>http://qt-project.org/forums/viewreply/86087</link>
            <author>[vlz]Lion</author>
            <description><![CDATA[QWebHitTestResult tells about content under cursor, but can`t change it selection.]]></description>
            <guid isPermaLink="false">fdb6166048feff519ed82e68f9dae083</guid>
            <pubDate>Fri, 18 May 2012 15:46:04 GMT</pubDate>
        </item>
  
        <item>
            <title>QT5 qtwebkit</title>
            <link>http://qt-project.org/forums/viewreply/85966</link>
            <author>hari</author>
            <description><![CDATA[I was able to pass through this issue. While configuring the webkit I passed:
&#45;&#45;no&#45;3d&#45;canvas


	My qtwebkit configuration now is as given below : 
perl Tools/Scripts/build&#45;webkit &#45;&#45;qt &#45;&#45;install&#45;libs=output &#45;&#45;release &#45;&#45;no&#45;3d&#45;canvas


	After that its compiling without any issues. 
Any body has explanation for this?]]></description>
            <guid isPermaLink="false">3242f30c00c579267f51d5baa21cac8a</guid>
            <pubDate>Thu, 17 May 2012 07:56:58 GMT</pubDate>
        </item>
  
        <item>
            <title>QtWebkit &#45; Strict HTML</title>
            <link>http://qt-project.org/forums/viewthread/17283</link>
            <author>CMGeorge</author>
            <description><![CDATA[Hi,

	I have a issue with the QtWebView. I&#8217;m using Qt 4.8.1, but also the same result i have with all latest builds (all from Qt SDK installer)
Is there any solution to make the browser to ignore and pass over the html errors?

	eg; having &amp;lt;h4&amp;gt;sdadasda&amp;lt;/h3&amp;gt; it render page until to this line, and after this the webview render the error message.

	Thank you in advanced.]]></description>
            <guid isPermaLink="false">cafd132776dbac5263809f4139a74bb3</guid>
            <pubDate>Wed, 16 May 2012 20:50:29 GMT</pubDate>
        </item>
  

  </channel>
</rss>
