<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2995477</guid>
        <pubDate>Tue, 27 Sep 2011 09:37:35 +0000</pubDate>
        <title>WebKit в Qt</title>
        <link>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2995477</link>
        <description><![CDATA[randir: Добрый день. Есть программа которая работает как браузер, т.е .в ней открывается страницы сайта. На сайте есть кнопки распечатки. Но они не активны (т.е. их нажатие ни к чему не приводят). Как сделать чтобы в этой программе как и в обычном браузере можно было бы распечатать? Я к сожалению с этим языком не знаком и программу кто писал сейчас найти не могу(]]></description>
        <author>randir</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2542613</guid>
        <pubDate>Mon, 22 Mar 2010 17:41:48 +0000</pubDate>
        <title>WebKit в Qt</title>
        <link>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2542613</link>
        <description><![CDATA[asmforce: Страница вообще не грузится, и прокси точно не требует авторизации.<br>В том то и проблема.  :blink:]]></description>
        <author>asmforce</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2518934</guid>
        <pubDate>Mon, 01 Mar 2010 00:53:46 +0000</pubDate>
        <title>WebKit в Qt</title>
        <link>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2518934</link>
        <description><![CDATA[FullArcticFox: <strong class='tag-b'>asmforce</strong> а прокся случаем авторизации не требует?]]></description>
        <author>FullArcticFox</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2518092</guid>
        <pubDate>Sat, 27 Feb 2010 19:22:43 +0000</pubDate>
        <title>WebKit в Qt</title>
        <link>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2518092</link>
        <description><![CDATA[TJSonic: Страница вообще не грузиться?]]></description>
        <author>TJSonic</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2517034</guid>
        <pubDate>Fri, 26 Feb 2010 18:48:27 +0000</pubDate>
        <title>WebKit в Qt</title>
        <link>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2517034</link>
        <description><![CDATA[asmforce: Здравствуйте&#33; Есть вопросик по QWebView. Qt4.6 (SDK 2010.01)<br>
Есть необходимость работать через прокси.<br>
<br>
Есть попытки:<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">webPage-&#62;page()-&#62;networkAccessManager()-&#62;setProxy( QNetworkProxy(QNetworkProxy::DefaultProxy,&quot;192.168.100.1&quot;,3128) );</div><div class="code_line">webPage-&#62;page()-&#62;networkAccessManager()-&#62;setProxy( QNetworkProxy(QNetworkProxy::HttpProxy,&quot;192.168.100.1&quot;,3128) );</div><div class="code_line">webPage-&#62;page()-&#62;networkAccessManager()-&#62;setProxy( QNetworkProxy(QNetworkProxy::DefaultProxy,&quot;http://192.168.100.1&quot;,3128) );</div><div class="code_line">webPage-&#62;page()-&#62;networkAccessManager()-&#62;setProxy( QNetworkProxy(QNetworkProxy::HttpProxy,&quot;http://192.168.100.1&quot;,3128) );</div><div class="code_line">&nbsp;</div><div class="code_line">//а также - QNetworkProxy::setApplicationProxy( ... );</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script><br>
<br>
Страница не грузится, но попытка есть - после выполнения функции QWebPage::load, при закрытии приложения в QtCreator&#39;е пишет:<br>
QWaitCondition: Destroyed while threads are still waiting<br>
//Вопрос в том, чего он ждет.<br>
<br>
Есть какие-то особенности?<br>
<br>
З.Ы. Через прокси хожу в интернет. Т.е. он работает корректно. (3proxy на CentOS)]]></description>
        <author>asmforce</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509556</guid>
        <pubDate>Thu, 18 Feb 2010 20:25:56 +0000</pubDate>
        <title>WebKit в Qt</title>
        <link>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509556</link>
        <description><![CDATA[TJSonic: Так убрал on с <div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">void MainWindow::on_ctab_loadFinished(bool)</div></ol></div></div></div></div><br>
Варнинг пропал но ничего не делаеться...<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">QMetaObject::connectSlotsByName: No matching signal for on_ctab_loadFinished(bool)</div></ol></div></div></div></div><br>
<br>
А вотето можно гденибуть в .h записать чтоб каждый раз не обьявлять?<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&nbsp;//Get current index</div><div class="code_line">&nbsp;&nbsp; &nbsp;int curr_index = tabWidget-&#62;currentIndex();</div><div class="code_line">&nbsp;&nbsp; &nbsp;if(curr_index==-1)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;return;</div><div class="code_line">&nbsp;&nbsp; &nbsp;QWidget *widget = tabWidget-&#62;widget(curr_index);</div><div class="code_line">&nbsp;&nbsp; &nbsp;if(QWebView *tab_page = qobject_cast&#60;QWebView*&#62;(widget))</div><div class="code_line">&nbsp;&nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;ui-&#62;lineEdit-&#62;setText(tab_page-&#62;url().toString());</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div></ol></div></div></div></div>]]></description>
        <author>TJSonic</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509545</guid>
        <pubDate>Thu, 18 Feb 2010 20:15:12 +0000</pubDate>
        <title>WebKit в Qt</title>
        <link>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509545</link>
        <description><![CDATA[FullArcticFox: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=292531&view=findpost&p=2509498'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>TJSonic &#064; <time class="tag-quote__quoted-time" datetime="2010-02-18T19:42:45+00:00">18.02.10, 19:42</time></span><div class='quote '>on_ctab_loadFinished()</div></div><br>
И там же почитай о слотах, начинающихся с on_ http://doc.trolltech.com/4.6/designer-using-a-ui-file.html#automatic-connections]]></description>
        <author>FullArcticFox</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509541</guid>
        <pubDate>Thu, 18 Feb 2010 20:14:09 +0000</pubDate>
        <title>WebKit в Qt</title>
        <link>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509541</link>
        <description><![CDATA[TJSonic: нада on_ctab_loadFinished(bool)  ????<br>
поставил ..... <div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">QMetaObject::connectSlotsByName: No matching signal for on_ctab_loadFinished(bool)</div></ol></div></div></div></div><br>
.h<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">void on_ctab_loadFinished(bool);</div></ol></div></div></div></div><br>
<br>
.cpp<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">void MainWindow::on_ctab_loadFinished(bool)</div><div class="code_line">{</div><div class="code_line">&nbsp;&nbsp; &nbsp;//Get current index</div><div class="code_line">&nbsp;&nbsp; &nbsp;int curr_index = tabWidget-&#62;currentIndex();</div><div class="code_line">&nbsp;&nbsp; &nbsp;if(curr_index==-1)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;return;</div><div class="code_line">&nbsp;&nbsp; &nbsp;tabWidget-&#62;setTabText(curr_index,&quot;hjhjhj&quot;);</div><div class="code_line">}</div></ol></div></div></div></div>]]></description>
        <author>TJSonic</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509535</guid>
        <pubDate>Thu, 18 Feb 2010 20:10:33 +0000</pubDate>
        <title>WebKit в Qt</title>
        <link>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509535</link>
        <description><![CDATA[FullArcticFox: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=292531&view=findpost&p=2509527'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>TJSonic &#064; <time class="tag-quote__quoted-time" datetime="2010-02-18T20:04:54+00:00">18.02.10, 20:04</time></span><div class='quote '>Что есть сигнатура сигнала и слота???</div></div><br>
Сигнал<br>
loadFinished(bool)<br>
Слот<br>
on_ctab_loadFinished()<br>
<br>
В чем отличие? <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Добавлено <time class="tag-mergetime" datetime="2010-02-18T20:11:42+00:00">18.02.10, 20:11</time></span></span><br>
Такс.. Читаем внимательно http://doc.trolltech.com/4.6/signalsandslots.html<br>
<strong class='tag-b'>The signature of a signal must match the signature of the receiving slot</strong> <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Добавлено <time class="tag-mergetime" datetime="2010-02-18T20:13:38+00:00">18.02.10, 20:13</time></span></span><br>
<div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=292531&view=findpost&p=2509527'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>TJSonic &#064; <time class="tag-quote__quoted-time" datetime="2010-02-18T20:04:54+00:00">18.02.10, 20:04</time></span><div class='quote '>Что есть сигнатура</div></div><br>
http://ru.wikipedia.org/wiki/%D0%A1%D0%B8%D0%B3%D0%BD%D0%B0%D1%82%D1%83%D1%80%D0%B0_%D1%84%D1%83%D0%BD%D0%BA%D1%86%D0%B8%D0%B8#.D0.A1.D0.B8.D0.B3.D0.BD.D0.B0.D1.82.D1.83.D1.80.D0.B0_.D1.84.D1.83.D0.BD.D0.BA.D1.86.D0.B8.D0.B8]]></description>
        <author>FullArcticFox</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509527</guid>
        <pubDate>Thu, 18 Feb 2010 20:04:54 +0000</pubDate>
        <title>WebKit в Qt</title>
        <link>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509527</link>
        <description><![CDATA[TJSonic: Что есть сигнатура сигнала и слота???<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">QMetaObject::connectSlotsByName: No matching signal for on_ctab_loadFinished()</div></ol></div></div></div></div><br>
Что что имеен на выходе((]]></description>
        <author>TJSonic</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509519</guid>
        <pubDate>Thu, 18 Feb 2010 19:57:26 +0000</pubDate>
        <title>WebKit в Qt</title>
        <link>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509519</link>
        <description><![CDATA[FullArcticFox: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=292531&view=findpost&p=2509498'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>TJSonic &#064; <time class="tag-quote__quoted-time" datetime="2010-02-18T19:42:45+00:00">18.02.10, 19:42</time></span><div class='quote '>connect(tab_page, SIGNAL(loadFinished(bool)), SLOT(on_ctab_loadFinished()));</div></div><br>
У тебя как минимум сигнатура сигнала и слота не совпадает.<br>
Да и обрамляй код в теги CODE]]></description>
        <author>FullArcticFox</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509498</guid>
        <pubDate>Thu, 18 Feb 2010 19:42:45 +0000</pubDate>
        <title>WebKit в Qt</title>
        <link>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509498</link>
        <description><![CDATA[TJSonic: А вот такой момент коннектимся к сигналу:<br><br>//Get current index<br>    int curr_index = tabWidget-&gt;currentIndex();<br>    if(curr_index==-1)<br>        return;<br>    QWidget *widget = tabWidget-&gt;widget(curr_index);<br>    if(QWebView *tab_page = qobject_cast&lt;QWebView*&gt;(widget))<br>    {<br>        connect(tab_page, SIGNAL(loadFinished(bool)), SLOT(on_ctab_loadFinished()));<br>    }<br><br>слот:<br>void MainWindow::on_ctab_loadFinished()<br>{<br>    //Get current index<br>    int curr_index = tabWidget-&gt;currentIndex();<br>    if(curr_index==-1)<br>        return;<br>    tabWidget-&gt;setTabText(curr_index,&quot;hjhjhj&quot;);<br>}<br>по идее должно присваивать открытой вкладке имя, почемуто не присваивает(]]></description>
        <author>TJSonic</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509342</guid>
        <pubDate>Thu, 18 Feb 2010 16:50:20 +0000</pubDate>
        <title>WebKit в Qt</title>
        <link>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509342</link>
        <description><![CDATA[TJSonic: Спасибо&#33;)Так вроди минимальненько прикрутил)))как теперь сделать чтоб веб вью был какбы полностью во вкладке а не в небольшой рамочке?]]></description>
        <author>TJSonic</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509326</guid>
        <pubDate>Thu, 18 Feb 2010 16:14:29 +0000</pubDate>
        <title>WebKit в Qt</title>
        <link>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509326</link>
        <description><![CDATA[FullArcticFox: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=292531&view=findpost&p=2509317'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>TJSonic &#064; <time class="tag-quote__quoted-time" datetime="2010-02-18T16:05:30+00:00">18.02.10, 16:05</time></span><div class='quote '>Вроди понятнее, а это все можно реализовать в одном и томже cpp файле?) </div></div><br>
Можно. Вместо TabPage юзать просто WebView.]]></description>
        <author>FullArcticFox</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509317</guid>
        <pubDate>Thu, 18 Feb 2010 16:05:30 +0000</pubDate>
        <title>WebKit в Qt</title>
        <link>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509317</link>
        <description><![CDATA[TJSonic: Вроди понятнее, а это все можно реализовать в одном и томже cpp файле?)]]></description>
        <author>TJSonic</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509284</guid>
        <pubDate>Thu, 18 Feb 2010 15:32:09 +0000</pubDate>
        <title>WebKit в Qt</title>
        <link>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509284</link>
        <description><![CDATA[FullArcticFox: Хорошо, так понятнее? <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Добавлено <time class="tag-mergetime" datetime="2010-02-18T15:35:25+00:00">18.02.10, 15:35</time></span></span><br>
Да и это создано при помощи &quot;конструктора&quot; QtDesigner, входящий в состав QtCreator, сигналы и слоты конектятся автоматом]]></description>
        <author>FullArcticFox</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509259</guid>
        <pubDate>Thu, 18 Feb 2010 15:07:08 +0000</pubDate>
        <title>WebKit в Qt</title>
        <link>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509259</link>
        <description><![CDATA[TJSonic: Дошло....клас у меня MainWindow ,<br>QWebView* mpt;<br>и как теперь обьявить QWebView имнуемый mpt находящийся в TabWidget который в свою очередь называеться QTabWidget *tabWidget;<br>????????]]></description>
        <author>TJSonic</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509244</guid>
        <pubDate>Thu, 18 Feb 2010 14:56:19 +0000</pubDate>
        <title>WebKit в Qt</title>
        <link>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509244</link>
        <description><![CDATA[FullArcticFox: <strong class='tag-b'>TJSonic</strong> у тебя ДРУГОЙ КЛАСС, НЕ TabWidget.<br>
WebViewWithSearch - этот объект тоже другой.]]></description>
        <author>FullArcticFox</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509237</guid>
        <pubDate>Thu, 18 Feb 2010 14:49:00 +0000</pubDate>
        <title>WebKit в Qt</title>
        <link>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509237</link>
        <description><![CDATA[TJSonic: Допустим....)<br>void TabWidget::currentChanged(int index)<br>{<br>    WebView *webView = this-&gt;webView(index);<br>    if (&#33;webView)<br>      return;<br><br>   //Ну а здесь получив указатель на текущий webView соответственно получаем url и пихаем его в line edit<br><br>}<br>это слот который выполниеться если вкладка меняеться, так?<br>WebView *TabWidget::webView(int index) const<br>{<br>    QWidget *widget = this-&gt;widget(index);<br>    if (WebViewWithSearch *webViewWithSearch = qobject_cast&lt;WebViewWithSearch*&gt;(widget)) {<br>        return webViewWithSearch-&gt;m_webView;<br>}<br>а се этим что? как его в моем случае записать?<br>mpt *TabWidget::mpt(int index) const<br>{<br>    QWidget *widget = this-&gt;widget(index);<br>    if (WebViewWithSearch *webViewWithSearch = qobject_cast&lt;WebViewWithSearch*&gt;(widget)) {<br>        return webViewWithSearch-&gt;m_webView;<br>}<br>????]]></description>
        <author>TJSonic</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509191</guid>
        <pubDate>Thu, 18 Feb 2010 14:12:14 +0000</pubDate>
        <title>WebKit в Qt</title>
        <link>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509191</link>
        <description><![CDATA[FullArcticFox: <strong class='tag-b'>TJSonic</strong><br>
1. TabWidget - это наследник QTabWidget.<br>
2. currentChanged - это слот TabWidget, который ты должен объявить в h файле. И приконнектить его к соотв. сигналу.]]></description>
        <author>FullArcticFox</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509180</guid>
        <pubDate>Thu, 18 Feb 2010 14:00:58 +0000</pubDate>
        <title>WebKit в Qt</title>
        <link>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509180</link>
        <description><![CDATA[TJSonic: Блин шота и вижу вообще дуб.....<br>В .h файл для этого чтонибуть добавлять надо????<br><br>void TabWidget::currentChanged(int index)<br>{<br>    WebView *webView = this-&gt;webView(index);<br>    if (&#33;webView)<br>      return;<br><br>   //Ну а здесь получив указатель на текущий webView соответственно получаем url и пихаем его в line edit<br><br>}<br>Если так и вставить пишет:<br>D:/my14/mainwindow.cpp:597: error: &#39;TabWidget&#39; has not been declared<br>D:/my14/mainwindow.cpp:599: error: &#39;WebView&#39; was not declared in this scope<br>D:/my14/mainwindow.cpp:599: error: &#39;webView&#39; was not declared in this scope<br>D:/my14/mainwindow.cpp:599: error: invalid use of &#39;this&#39; in non-member function<br><br>То что у меня:<br>QTabWidget *tabWidget;<br>QWidget wgtm;<br>QWebView* mpt;<br><br>Вкладки создаю так:<br> QWidget wgt;<br><br>    tabWidget = new QTabWidget;<br>    tabWidget-&gt;addTab(new QLabel(&quot;str&quot;, 0), tr(&quot;Новая вкладка&quot;));<br>    tabWidget-&gt;setMovable(true);<br>    tabWidget-&gt;setTabsClosable(true);<br><br>    QVBoxLayout *mainLayout = new QVBoxLayout;<br>        mainLayout-&gt;addWidget(tabWidget);<br>        mainLayout-&gt;addWidget(ui-&gt;webView);<br>       wgt.setLayout(mainLayout);<br>       wgt.show();<br>    QMainWindow::setCentralWidget(tabWidget);<br><br>Слот создания:<br> mpt= new QWebView;<br>    tabWidget-&gt;addTab(mpt, tr(&quot;Новая вкладка&quot;));<br>    mpt-&gt;load(QUrl(&quot;http://vkontakte.ru/&quot;));]]></description>
        <author>TJSonic</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509159</guid>
        <pubDate>Thu, 18 Feb 2010 13:37:46 +0000</pubDate>
        <title>WebKit в Qt</title>
        <link>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509159</link>
        <description><![CDATA[FullArcticFox: Вот кусок кода из авроры<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">void TabWidget::currentChanged(int index)</div><div class="code_line">{</div><div class="code_line">&nbsp;&nbsp; &nbsp;WebView *webView = this-&#62;webView(index);</div><div class="code_line">&nbsp;&nbsp; &nbsp;if (!webView)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;return;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; //Ну а здесь получив указатель на текущий webView соответственно получаем url и пихаем его в line edit</div><div class="code_line">&nbsp;</div><div class="code_line">}</div><div class="code_line">&nbsp;</div><div class="code_line">WebView *TabWidget::webView(int index) const</div><div class="code_line">{</div><div class="code_line">&nbsp;&nbsp; &nbsp;QWidget *widget = this-&#62;widget(index);</div><div class="code_line">&nbsp;&nbsp; &nbsp;if (WebViewWithSearch *webViewWithSearch = qobject_cast&#60;WebViewWithSearch*&#62;(widget)) {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;return webViewWithSearch-&#62;m_webView;</div><div class="code_line">}</div></ol></div></div></div></div>]]></description>
        <author>FullArcticFox</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509128</guid>
        <pubDate>Thu, 18 Feb 2010 13:11:50 +0000</pubDate>
        <title>WebKit в Qt</title>
        <link>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2509128</link>
        <description><![CDATA[TJSonic: В демо которое называеться browser тож есть исходник но там както все так запутанно что ппц....(<br>
Помогите разобраться именно с void QTabWidget::currentChanged ( int index ) [signal]<br>
ну допустим изменилась вкладка а куда прописывать что делеть???]]></description>
        <author>TJSonic</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2508751</guid>
        <pubDate>Thu, 18 Feb 2010 08:51:00 +0000</pubDate>
        <title>WebKit в Qt</title>
        <link>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2508751</link>
        <description><![CDATA[FullArcticFox: <strong class='tag-b'>TJSonic</strong><br>
Посмотри http://code.google.com/p/arora/ - там есть исходники, на примере можешь посмотреть чего как.]]></description>
        <author>FullArcticFox</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2508591</guid>
        <pubDate>Wed, 17 Feb 2010 22:27:40 +0000</pubDate>
        <title>WebKit в Qt</title>
        <link>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2508591</link>
        <description><![CDATA[TJSonic: Блин, а можно на примерчике void QTabWidget::currentChanged ( int index ) [signal].....???<br>
Чтобы именно тот WebView который находиться в выбраной вкладке передавал значение  в лайн эдит......<br>
<br>
<br>
<br>
а COM в Qt реализуеться через ActiveQt????]]></description>
        <author>TJSonic</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2508589</guid>
        <pubDate>Wed, 17 Feb 2010 22:18:43 +0000</pubDate>
        <title>WebKit в Qt</title>
        <link>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2508589</link>
        <description><![CDATA[FullArcticFox: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=292531&view=findpost&p=2508336'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Radagast &#064; <time class="tag-quote__quoted-time" datetime="2010-02-17T16:40:47+00:00">17.02.10, 16:40</time></span><div class='quote '>Это скорее всего через COM, надо будет портить реестр и т.д.<br>
но можно очень просто и кросс-платформенно сделать так, чтобы перетаскивать файл из Проводника в открытое окно программы<br>
через Drag&#39;n&#39;Drop </div></div><br>
Я так мыслю, что у автора просто напросто прога не понимает входные параметры вида<br>
proga.exe путь_к_файлу<br>
<br>
<div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=292531&view=findpost&p=2508383'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>TJSonic &#064; <time class="tag-quote__quoted-time" datetime="2010-02-17T17:46:14+00:00">17.02.10, 17:46</time></span><div class='quote '>Что эсть COM? Я именно хочу чтоб так было...)))</div></div><br>
http://doc.trolltech.com/4.6/dnd.html]]></description>
        <author>FullArcticFox</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2508434</guid>
        <pubDate>Wed, 17 Feb 2010 18:41:09 +0000</pubDate>
        <title>WebKit в Qt</title>
        <link>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2508434</link>
        <description><![CDATA[Radagast: <div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <div class='quote '>Что эсть COM</div></div><br>
http://ru.wikipedia.org/wiki/Component_Object_Model<br>
<br>
<div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <div class='quote '>КАК?</div></div><br>
Assistant принципиально не читаем?<br>
void QTabWidget::currentChanged ( int index )   [signal]]]></description>
        <author>Radagast</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2508383</guid>
        <pubDate>Wed, 17 Feb 2010 17:46:14 +0000</pubDate>
        <title>WebKit в Qt</title>
        <link>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2508383</link>
        <description><![CDATA[TJSonic: Что эсть COM? Я именно хочу чтоб так было...)))<br>
И еше вот есть у меня tabWidget с WebViewом внутри <br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">tabWidget-&#62;addTab(mpt, tr(&quot;Новая вкладка&quot;));</div></ol></div></div></div></div><br>
Код стоит на кнопочке тоесть при нажатии выполняеться этот код и в теории пожна таких вкладк миллион создать....еще есть обьект lineEdit в который должен передаваться Url обьекта WebView находящевося в выбраной вкладке.КАК????]]></description>
        <author>TJSonic</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2508336</guid>
        <pubDate>Wed, 17 Feb 2010 16:40:47 +0000</pubDate>
        <title>WebKit в Qt</title>
        <link>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2508336</link>
        <description><![CDATA[Radagast: Это скорее всего через COM, надо будет портить реестр и т.д.<br>но можно очень просто и кросс-платформенно сделать так, чтобы перетаскивать файл из Проводника в открытое окно программы<br>через Drag&#39;n&#39;Drop]]></description>
        <author>Radagast</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2508192</guid>
        <pubDate>Wed, 17 Feb 2010 14:12:04 +0000</pubDate>
        <title>WebKit в Qt</title>
        <link>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2508192</link>
        <description><![CDATA[TJSonic: А как сделать так чтоб можно было открывать текстовый файл с помощю например своего блокнотика не через файл-&gt;открыть а в винде нужный файл -&gt; открыть с помощю выбираю свою погу она открываеться ноо файл не грузиться((((как сделать так???]]></description>
        <author>TJSonic</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2482985</guid>
        <pubDate>Fri, 22 Jan 2010 18:44:27 +0000</pubDate>
        <title>WebKit в Qt</title>
        <link>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2482985</link>
        <description><![CDATA[FullArcticFox: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=292531&view=findpost&p=2478419'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>TJSonic &#064; <time class="tag-quote__quoted-time" datetime="2010-01-18T19:44:02+00:00">18.01.10, 19:44</time></span><div class='quote '>1. Имеем програму в ней виджет webView, как сделать чтоб при розворачивании программы на весь экран, виджет занимал все свободное пространоство?</div></div><br>
http://doc.trolltech.com/4.6/widgets-and-layouts.html<br>
<br>
<div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=292531&view=findpost&p=2478419'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>TJSonic &#064; <time class="tag-quote__quoted-time" datetime="2010-01-18T19:44:02+00:00">18.01.10, 19:44</time></span><div class='quote '>2. При старте браузера загрузить .html файл лежащий рядом с exe шником?</div></div><br>
http://doc.trolltech.com/4.6/qwebview.html#setHtml<br>
<br>
<div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=292531&view=findpost&p=2478419'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>TJSonic &#064; <time class="tag-quote__quoted-time" datetime="2010-01-18T19:44:02+00:00">18.01.10, 19:44</time></span><div class='quote '>3. Впихнуть в браузер флеш?</div></div><br>
http://www.forum.crossplatform.ru/index.php?showtopic=3576<br>
<br>
<div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=292531&view=findpost&p=2478419'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>TJSonic &#064; <time class="tag-quote__quoted-time" datetime="2010-01-18T19:44:02+00:00">18.01.10, 19:44</time></span><div class='quote '>4. Впихнуть поддержку протокола .https?</div></div><br>
http://www.qtcentre.org/threads/14398-Use-of-QWebView-to-browse-https-secure-sites<br>
<br>
<div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=292531&view=findpost&p=2478419'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>TJSonic &#064; <time class="tag-quote__quoted-time" datetime="2010-01-18T19:44:02+00:00">18.01.10, 19:44</time></span><div class='quote '>6. Менеджер паролей ну хотябы такой как в IE просто чтоб запоминало логин и пас и ненадобыло каждый раз входить))))как???</div></div><br>
Руками. <br>
<br>
<div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=292531&view=findpost&p=2478419'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>TJSonic &#064; <time class="tag-quote__quoted-time" datetime="2010-01-18T19:44:02+00:00">18.01.10, 19:44</time></span><div class='quote '>7. Организация вкаладок, ну например через виджет Tabs а как создать новую вкладку нажатием на клавишу к примеру????</div></div><br>
Шоткат привязываешь к слоту в котором создаешь вкладку.<br>
<br>
А вообще большинство ответов на твои вопросы есть документации.]]></description>
        <author>FullArcticFox</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2478564</guid>
        <pubDate>Tue, 19 Jan 2010 05:47:31 +0000</pubDate>
        <title>WebKit в Qt</title>
        <link>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2478564</link>
        <description><![CDATA[sfinae: В Qt SDK есть демо, которое называется Browser. На большинство вопросов там есть ответ.]]></description>
        <author>sfinae</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2478419</guid>
        <pubDate>Mon, 18 Jan 2010 19:44:02 +0000</pubDate>
        <title>WebKit в Qt</title>
        <link>https://forum.sources.ru/index.php?showtopic=292531&amp;view=findpost&amp;p=2478419</link>
        <description><![CDATA[TJSonic: В общем недавно начал пытаться писать проги на Qt решил написать свой браузер. Вот в общем он у меня работает но есть несколько вопросов.<br>
Итак возможно ли в Qt 4.6 WebKit?:<br>
1. Имеем програму в ней виджет webView, как сделать чтоб при розворачивании программы на весь экран, виджет занимал все свободное пространоство?<br>
2. При старте браузера загрузить .html файл лежащий рядом с exe шником?<br>
3. Впихнуть в браузер флеш?<br>
4. Впихнуть поддержку протокола .https?<br>
5. как реализовать автообновление формы ввода адреса?<br>
ну теоретически берем слот с текущим адресом, записываем в переменную, переменную приравниваем к слоту формы, а как именно в Qt??? ато падло даже на int a; в произвольном месте ругаеться)<br>
6. Менеджер паролей ну хотябы такой как в IE просто чтоб запоминало логин и пас и ненадобыло каждый раз входить))))как???<br>
7. Организация вкаладок, ну например через виджет Tabs а как создать новую вкладку нажатием на клавишу к примеру????<br>
<br>
Ну и скрин моих наработок:<br>
<a class='tag-url' href='http://img19.imageshack.us/i/snap1dwr.jpg/' target='_blank'><img class='tag-img' src='http://img19.imageshack.us/img19/1267/snap1dwr.th.jpg' alt='user posted image'></a><br>
<br>
<br>
Очень жду ответов.......))))]]></description>
        <author>TJSonic</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      </channel>
      </rss>
	