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. QX11EmbedContainer - after embedding and click on widget -> freeze
Forum Updated to NodeBB v4.3 + New Features

QX11EmbedContainer - after embedding and click on widget -> freeze

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 2.5k Views 1 Watching
  • 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.
  • S Offline
    S Offline
    simonbolek
    wrote on last edited by
    #1

    Hi gurus:)
    I have a question about the QX11EmbedContainer . I followed the tutorial in the ¨QX11EmbedContainer Class Reference¨
    and created simple Qt app embedding another app like gedit here it is:

    @
    int main(int argc, char *argv[])
    {
    QApplication a(argc, argv);
    Dialog w;
    QX11EmbedContainer container;
    QProcess process(&container);
    container.setParent(&w);
    w.show();
    w.setGeometry(100, 100, 600, 400);
    container.setGeometry(0,0,600,400);
    container.setFocusPolicy(Qt::NoFocus);
    QString wId = QString::number(container.winId());
    QStringList arguments;
    process.start("/usr/bin/gedit", arguments);
    int status = a.exec();
    process.close();
    return status;
    }
    @

    And it is indeed embedding in the dialog window, however when i click anywhere within the dialog window everything freezes and i do not know what is the reason for this. I have to kill the host app in order to close the frozen window.

    Could you please look at this code?
    Anything missing/wrong/...?

    cheers
    simon:)

    cheers
    simon:)

    http://arcom-ivi.de

    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