<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Mananing multiples Uis or using QGraphicsview ?]]></title><description><![CDATA[<p dir="auto">Hello, i'm working on an application and i need to create a second window. So i created a second Ui File, with its cpp class and header. the thing is, i want something in this window to call a function that belongs to the first window, but i havent managed to do this. it looks likes its really difficult to manage multiple ui files. To be more precise, the second window the second window makes a signal with an argument, and i need that argument to be used with the first window. I can give you code if you like but i dont feel like its necessary right now, im having more of an "access" problem than technical or syntaxic.</p>
<p dir="auto">does anyone know how i could do this ?</p>
<p dir="auto">And in my case, would it be better if i used QGraphicsView instead of creating a second Ui file ?</p>
<p dir="auto">thank you in advance</p>
]]></description><link>https://forum.qt.io/topic/126723/mananing-multiples-uis-or-using-qgraphicsview</link><generator>RSS for Node</generator><lastBuildDate>Mon, 14 Sep 2026 11:16:18 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/126723.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 17 May 2021 13:28:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Mananing multiples Uis or using QGraphicsview ? on Mon, 17 May 2021 22:18:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/aftalib">@<bdi>aftalib</bdi></a> said in <a href="/post/660104">Mananing multiples Uis or using QGraphicsview ?</a>:</p>
<blockquote>
<p dir="auto">a treeview.h and treeview.cpp file where i have redefined the eventFilter() method in order to get the signal i want.</p>
</blockquote>
<p dir="auto">What does this mean?</p>
<p dir="auto">QObject::eventFilter isn't usually involved in application code related to signals and slots.</p>
]]></description><link>https://forum.qt.io/post/660190</link><guid isPermaLink="true">https://forum.qt.io/post/660190</guid><dc:creator><![CDATA[jeremy_k]]></dc:creator><pubDate>Mon, 17 May 2021 22:18:27 GMT</pubDate></item><item><title><![CDATA[Reply to Mananing multiples Uis or using QGraphicsview ? on Mon, 17 May 2021 15:33:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/aftalib">@<bdi>aftalib</bdi></a> said in <a href="/post/660104">Mananing multiples Uis or using QGraphicsview ?</a>:</p>
<blockquote>
<p dir="auto">what is the custom TreeView youre talking about ?</p>
</blockquote>
<p dir="auto">a custom TreeView is a class derived from QTreeView.</p>
]]></description><link>https://forum.qt.io/post/660108</link><guid isPermaLink="true">https://forum.qt.io/post/660108</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Mon, 17 May 2021 15:33:42 GMT</pubDate></item><item><title><![CDATA[Reply to Mananing multiples Uis or using QGraphicsview ? on Mon, 17 May 2021 15:20:09 GMT]]></title><description><![CDATA[<p dir="auto">i'm sorry, i really dont understand the concept behind this. What i have is :</p>
<p dir="auto">a Ui File, which i have put a normal TreeView inside of it</p>
<p dir="auto">a treeview.h and treeview.cpp file where i have redefined the eventFilter() method in order to get the signal i want.</p>
<p dir="auto">what is the custom TreeView youre talking about ?</p>
]]></description><link>https://forum.qt.io/post/660104</link><guid isPermaLink="true">https://forum.qt.io/post/660104</guid><dc:creator><![CDATA[aftalib]]></dc:creator><pubDate>Mon, 17 May 2021 15:20:09 GMT</pubDate></item><item><title><![CDATA[Reply to Mananing multiples Uis or using QGraphicsview ? on Mon, 17 May 2021 15:13:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/aftalib">@<bdi>aftalib</bdi></a> said in <a href="/post/660098">Mananing multiples Uis or using QGraphicsview ?</a>:</p>
<blockquote>
<p dir="auto">what i should do according to this is promote my TreeView that is in my Ui with my treeView class right ?</p>
</blockquote>
<p dir="auto">I don't understand what you're trying to tell me.</p>
<p dir="auto">The documentation clearly shows you how to promote a QTreeView to a custom TreeView. That your custom TreeView must derive from QTreeView then should be out of question then.</p>
]]></description><link>https://forum.qt.io/post/660102</link><guid isPermaLink="true">https://forum.qt.io/post/660102</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Mon, 17 May 2021 15:13:10 GMT</pubDate></item><item><title><![CDATA[Reply to Mananing multiples Uis or using QGraphicsview ? on Mon, 17 May 2021 14:49:06 GMT]]></title><description><![CDATA[<p dir="auto">what i should do according to this is promote my TreeView that is in my Ui with my treeView class right ?</p>
]]></description><link>https://forum.qt.io/post/660098</link><guid isPermaLink="true">https://forum.qt.io/post/660098</guid><dc:creator><![CDATA[aftalib]]></dc:creator><pubDate>Mon, 17 May 2021 14:49:06 GMT</pubDate></item><item><title><![CDATA[Reply to Mananing multiples Uis or using QGraphicsview ? on Mon, 17 May 2021 14:48:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/aftalib">@<bdi>aftalib</bdi></a> said in <a href="/post/660096">Mananing multiples Uis or using QGraphicsview ?</a>:</p>
<blockquote>
<p dir="auto">it says that i have an "undefined reference" in my ui_  file</p>
</blockquote>
<p dir="auto">read again and think over on how we should help you with this information.</p>
]]></description><link>https://forum.qt.io/post/660097</link><guid isPermaLink="true">https://forum.qt.io/post/660097</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Mon, 17 May 2021 14:48:27 GMT</pubDate></item><item><title><![CDATA[Reply to Mananing multiples Uis or using QGraphicsview ? on Mon, 17 May 2021 14:44:04 GMT]]></title><description><![CDATA[<p dir="auto">ive tried this but it really doesnt solve my problem. it says that i have an "undefined reference" in my ui_  file</p>
]]></description><link>https://forum.qt.io/post/660096</link><guid isPermaLink="true">https://forum.qt.io/post/660096</guid><dc:creator><![CDATA[aftalib]]></dc:creator><pubDate>Mon, 17 May 2021 14:44:04 GMT</pubDate></item><item><title><![CDATA[Reply to Mananing multiples Uis or using QGraphicsview ? on Mon, 17 May 2021 14:41:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/aftalib">@<bdi>aftalib</bdi></a> said in <a href="/post/660093">Mananing multiples Uis or using QGraphicsview ?</a>:</p>
<blockquote>
<p dir="auto">how can i do this in my case ?</p>
</blockquote>
<p dir="auto">By reading: <a href="https://doc.qt.io/qt-5/designer-using-custom-widgets.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/designer-using-custom-widgets.html</a></p>
]]></description><link>https://forum.qt.io/post/660095</link><guid isPermaLink="true">https://forum.qt.io/post/660095</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Mon, 17 May 2021 14:41:53 GMT</pubDate></item><item><title><![CDATA[Reply to Mananing multiples Uis or using QGraphicsview ? on Mon, 17 May 2021 14:19:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nagesh">@<bdi>nagesh</bdi></a> i didnt know about the promoting widget mechanism. how can i do this in my case ?</p>
]]></description><link>https://forum.qt.io/post/660093</link><guid isPermaLink="true">https://forum.qt.io/post/660093</guid><dc:creator><![CDATA[aftalib]]></dc:creator><pubDate>Mon, 17 May 2021 14:19:23 GMT</pubDate></item><item><title><![CDATA[Reply to Mananing multiples Uis or using QGraphicsview ? on Mon, 17 May 2021 14:14:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/aftalib">@<bdi>aftalib</bdi></a> does your ui treeview is promoted widget?</p>
<pre><code>in this current window, we have a TreeView, and i also have a treeview class where i reimplemented the eventFilter() method in order to get the signal that you see in the connect (&amp;TreeView::currentItemChanged)
</code></pre>
]]></description><link>https://forum.qt.io/post/660091</link><guid isPermaLink="true">https://forum.qt.io/post/660091</guid><dc:creator><![CDATA[nagesh]]></dc:creator><pubDate>Mon, 17 May 2021 14:14:39 GMT</pubDate></item><item><title><![CDATA[Reply to Mananing multiples Uis or using QGraphicsview ? on Mon, 17 May 2021 13:59:34 GMT]]></title><description><![CDATA[<p dir="auto">here's what i'm trying to do :</p>
<pre><code>AntArrayDialog w1;
connect(ui-&gt;treeView,&amp;TreeView::currentItemChanged,&amp;w1,&amp;AntArrayDialog::setFileName);
</code></pre>
<p dir="auto">so let met explain : AntArrayDialog is my first Window. i am declaring it in order the method that i want to use here, which is setFileName</p>
<p dir="auto">in this current window, we have a TreeView, and i also have a treeview class where i reimplemented the eventFilter() method in order to get the signal that you see in the connect (&amp;TreeView::currentItemChanged)</p>
<p dir="auto">but this code doesnt work. i know that what you wrote is correct but i dont know how to use it in my case</p>
]]></description><link>https://forum.qt.io/post/660090</link><guid isPermaLink="true">https://forum.qt.io/post/660090</guid><dc:creator><![CDATA[aftalib]]></dc:creator><pubDate>Mon, 17 May 2021 13:59:34 GMT</pubDate></item><item><title><![CDATA[Reply to Mananing multiples Uis or using QGraphicsview ? on Mon, 17 May 2021 13:36:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/aftalib">@<bdi>aftalib</bdi></a> said in <a href="/post/660083">Mananing multiples Uis or using QGraphicsview ?</a>:</p>
<blockquote>
<p dir="auto">call a function that belongs to the first window, but i havent managed to do this. it looks likes its really difficult to manage multiple ui files.</p>
</blockquote>
<p dir="auto">It is not difficult. You should use signals and slots for that. One window emit a signal another one provides a slot connected to this signal:</p>
<pre><code>MyWindow1 w1;
MyWindow2 w2;
connect(&amp;w1, &amp;MyWindow1::someSignal, &amp;w2, &amp;MyWindow2::someSlot);
</code></pre>
<p dir="auto">That's all.</p>
]]></description><link>https://forum.qt.io/post/660085</link><guid isPermaLink="true">https://forum.qt.io/post/660085</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Mon, 17 May 2021 13:36:22 GMT</pubDate></item></channel></rss>