Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QProcess app on QWidget, no title & menu bar
Qt 6.11 is out! See what's new in the release blog

QProcess app on QWidget, no title & menu bar

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 176 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • yellowlemontree2014Y Offline
    yellowlemontree2014Y Offline
    yellowlemontree2014
    wrote on last edited by
    #1

    hi folks,

    I am trying launch an external application, through QProcess, and then trying to set this app on a QWidget. It is working partially, but the app's header title is not appearing. What am I doing wrong, In fact the menu bar is also not hidden. Kindly help me how can I get rid of it.

    here's below my code snippet.

        QProcess *process_ = new QProcess();
        process_->start(".\\MGL\\MGL.exe  C:\\datasets\\T1.nii");
        Sleep(20000);
        if (process_->waitForStarted(-1))
        {
            //0.00289917 0.28096 -0.180618 = 343
            HWND id2 = FindWindow(0, L"MGL");
    
            if (!id2)
                return;
            QTimer t2;
            t2.start(2500);
            QWindow* window2 = QWindow::fromWinId((WId)id2);
            QWidget* widget2 = QWidget::createWindowContainer(window2);
            setCentralWidget(widget2);
        }
    
    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved