<div dir="ltr"><div>Dear Tony</div><div><br></div><div>Thanks for your answer. first of all I am not repeating the question here. It is still a single thread. I am sorry for that.</div><div><br></div><div>finally I am still stuck with it. If you or any one could help me I will highly appreciate it.</div><div><br></div><div>My code snippet as follows.</div><div><br></div><div>

<pre style="margin:0px;text-indent:0px"><span style="color:rgb(128,0,128)">    QWindow</span><span style="color:rgb(192,192,192)"> </span>*<span style="color:rgb(9,46,100)">window</span><span style="color:rgb(192,192,192)"> </span>=<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)">new</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">QWindow</span>;<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">//</span></pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(9,46,100)">window</span><span style="color:rgb(192,192,192)"> </span>=<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">QWindow</span>::<span style="color:rgb(0,103,124)">fromWinId</span>((<span style="color:rgb(128,0,128)">WId</span>)<span style="color:rgb(9,46,100)">id</span>);</pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(128,0,128)">QWidget</span><span style="color:rgb(192,192,192)">  </span>*<span style="color:rgb(9,46,100)">widget</span><span style="color:rgb(192,192,192)"> </span>=<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">QWidget</span>::<span style="color:rgb(0,103,124)">createWindowContainer</span>(<span style="color:rgb(9,46,100)">window</span>);</pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(9,46,100)">widget</span>-><span style="color:rgb(0,103,124)">show</span>();<br><br></pre><pre style="margin:0px;text-indent:0px">This shows me the external app, that I am launching using qprocess. when I am extracting the app, using FindWindow.
<span style="color:rgb(128,0,128)">HWND</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(9,46,100)">id</span><span style="color:rgb(192,192,192)"> </span>=<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">FindWindow</span>(<span style="color:rgb(0,0,128)">NULL</span>,<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">L"MyGL"</span>);<br><br></pre><pre style="margin:0px;text-indent:0px">It is showing in the widget, but menubar is missing,. so the desired result is not what that I want. It's missing the header Name<br></pre><pre style="margin:0px;text-indent:0px">and menu bar. Is there any othe way that I can achieve the full app window. I want to see the full app window into the widget<br></pre><pre style="margin:0px;text-indent:0px">without missing any component. Let me know some one if any how we can achieve this in Qt.<br><br><br></pre><pre style="margin:0px;text-indent:0px">regards<br></pre><pre style="margin:0px;text-indent:0px">sujan<br></pre></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><img src="https://www.printstop.co.in/images/orders/29502/39811_P88_62_19875_15638.jpg?76589"></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 29 Feb 2020 at 15:25, Sujan Dasmahapatra <<a href="mailto:yellowlemontree0821@gmail.com">yellowlemontree0821@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Dear Tony</div><div><br></div><div>You're right, I am trying to access two separate apps, to be launched in a single QTabwidget. but how does it matter, since even if I launch in single Widget, it is still not coming. The header title is being correctly used I am able to launch the app. But the app's header and menu bar, are not being launched.</div><div><br></div><div><br></div><div>

<pre style="margin:0px;text-indent:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(128,128,0)">if</span><span style="color:rgb(192,192,192)"> </span>(<span style="color:rgb(9,46,100)">process_</span>-><span style="color:rgb(0,103,124)">waitForStarted</span>(-<span style="color:rgb(0,0,128)">1</span>))</pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(192,192,192)">    </span>{</pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(0,128,0)">//0.00289917</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">0.28096</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">-0.180618</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">343</span></pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,0,128)">HWND</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(9,46,100)">id</span><span style="color:rgb(192,192,192)"> </span>=<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">FindWindow</span>(<span style="color:rgb(0,0,128)">0</span>,<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">L"App.exe"</span>);</pre>
<pre style="margin:0px;text-indent:0px"><br></pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,128,0)">if</span><span style="color:rgb(192,192,192)"> </span>(!<span style="color:rgb(9,46,100)">id</span>)</pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(192,192,192)">            </span><span style="color:rgb(128,128,0)">return</span>;</pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,0,128)">QTimer</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(9,46,100)">t</span>;</pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(9,46,100)">t</span>.<span style="color:rgb(0,103,124)">start</span>(<span style="color:rgb(0,0,128)">2500</span>);</pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,0,128)">QWindow</span>*<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(9,46,100)">window</span><span style="color:rgb(192,192,192)"> </span>=<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">QWindow</span>::<span style="color:rgb(0,103,124)">fromWinId</span>((<span style="color:rgb(128,0,128)">WId</span>)<span style="color:rgb(9,46,100)">id</span>);</pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,0,128)">QWidget</span>*<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(9,46,100)">widget</span><span style="color:rgb(192,192,192)"> </span>=<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">QWidget</span>::<span style="color:rgb(0,103,124)">createWindowContainer</span>(<span style="color:rgb(9,46,100)">window</span>);</pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(0,103,124)">setCentralWidget</span>(<span style="color:rgb(9,46,100)">widget</span>);</pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(192,192,192)">    </span>}<br><br></pre><pre style="margin:0px;text-indent:0px">I am trying it on QMainWindow. And I think FindWindow itself is giving header text and menu less portion. So window and widget none<br></pre><pre style="margin:0px;text-indent:0px">is getting it. Can you suggest me what can be done for this.<br><br></pre><pre style="margin:0px;text-indent:0px">regards<br></pre><pre style="margin:0px;text-indent:0px">sujan<br></pre></div><div><br></div><div><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><img src="https://www.printstop.co.in/images/orders/29502/39811_P88_62_19875_15638.jpg?76589"></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 29 Feb 2020 at 07:53, Tony Rietwyk <<a href="mailto:tony@rightsoft.com.au" target="_blank">tony@rightsoft.com.au</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <p>Hi Sujan, <br>
    </p>
    <p>It's not clear to me why you want to use fromWinId?  Do you want
      two applications in separate processes to share the same windows? 
      The title bar and menu are drawn by special win32 non-client
      events - but they may be suppressed, since the window is now being
      hosted in your app.  With more information, maybe someone can help
      you - don't just repeat the same details in another post! <br>
    </p>
    <p>Regards, Tony<br>
    </p>
    <p><br>
    </p>
    <div>On 28/02/2020 11:13 pm, Sujan
      Dasmahapatra wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr"><br clear="all">
        <div>
          <div dir="ltr">
            <div dir="ltr">
              <div>
                <div class="gmail_quote"><img src="https://www.printstop.co.in/images/orders/29502/39811_P88_62_19875_15638.jpg?76589">
                  <div dir="ltr">
                    <div>Dear Friends,</div>
                    <div><br>
                    </div>
                    <div>My External Application Window title, is
                      missing in my QWindow.  I am trying to set this
                      window on a Widget and finally I am displaying
                      this widget on QScrollBar. But I am missing the
                      Window title and menu bar from the app. Please
                      check the code snippet below.</div>
                    <div><br>
                    </div>
                    <div> QWindow* window = QWindow::fromWinId(id);<br>
                      QWidget* widget =
                      QWidget::createWindowContainer(window);<br>
                      _gui->scrollArea->setWidget(widget);</div>
                    <div><br>
                    </div>
                    <div>With this snippet, I can see the app is
                      launched, but it's Title header text, is not
                      opening.</div>
                    <div><br>
                    </div>
                    <div>Please advise me what is going wrong. I have to
                      see the window title and most importantly the menu
                      bar as well.</div>
                    <div><br>
                    </div>
                    <div>regards</div>
                    <div>sujan<br>
                    </div>
                    <div><br>
                    </div>
                    <div>
                      <div>
                        <div dir="ltr">
                          <div dir="ltr">
                            <div>
                              <div dir="ltr"><img src="https://www.printstop.co.in/images/orders/29502/39811_P88_62_19875_15638.jpg?76589"></div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
Interest mailing list
<a href="mailto:Interest@qt-project.org" target="_blank">Interest@qt-project.org</a>
<a href="https://lists.qt-project.org/listinfo/interest" target="_blank">https://lists.qt-project.org/listinfo/interest</a>
</pre>
    </blockquote>
  </div>

_______________________________________________<br>
Interest mailing list<br>
<a href="mailto:Interest@qt-project.org" target="_blank">Interest@qt-project.org</a><br>
<a href="https://lists.qt-project.org/listinfo/interest" rel="noreferrer" target="_blank">https://lists.qt-project.org/listinfo/interest</a><br>
</blockquote></div>
</blockquote></div>