Results 1 to 7 of 7

Thread: How to integrate / embed Qt application in other framework like OpenGL for example?

  1. #1
    Join Date
    May 2009
    Posts
    83

    Default How to integrate / embed Qt application in other framework like OpenGL for example?

    Hello all
    I'm using Qt for desktop application but never needed to take portion of Qt in my case QWebkit and some widgets and use
    Them from other application like opengl application .
    For example simple flow .
    A button in the OpenGL application opens Qt Widget ,then the user fill some details and return the focus back to the OpenGL application
    How can it be done ?

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanked 268 Times in 268 Posts
    Wiki edits
    20

    Default Re: How to integrate / embed Qt application in other framework like OpenGL for exampl

    Instead of using a bare widget, create a full qt application.
    Call that application from within your other program.

    The Qt application can then save the settings/data to a local file.
    The other program (opengl, flash, ...) can then read this local file.

  3. #3
    Join Date
    May 2009
    Posts
    83

    Default Re: How to integrate / embed Qt application in other framework like OpenGL for exampl

    do you mean to create exe and then call it with some cmd command from the other application ? is this is the only way ?

  4. #4
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanked 268 Times in 268 Posts
    Wiki edits
    20

    Default Re: How to integrate / embed Qt application in other framework like OpenGL for exampl

    Quote Originally Posted by umen View Post
    do you mean to create exe and then call it with some cmd command from the other application ?
    Yes.

    is this is the only way ?
    No, but this will be the easiest way. If you want to use signals and slots, you need to have a Qt event loop running. The easiest way to do this is to create a simple Qt application.

  5. #5
    Join Date
    May 2009
    Posts
    83

    Default Re: How to integrate / embed Qt application in other framework like OpenGL for exampl

    its no good for me , i only using signal and slots inside my Qt application not in the hosting application .
    all i need it to return string.

    i found (i think ) good example for what i need , but the source code is missing mybe someone know where i can find the source code ?
    http://labs.qt.nokia.com/2008/12/02/...sion-wolfenqt/
    Last edited by umen; 4th May 2011 at 08:00.

  6. #6
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanked 268 Times in 268 Posts
    Wiki edits
    20

    Default Re: How to integrate / embed Qt application in other framework like OpenGL for exampl

    That is by far not what you want.
    Edit: I mean, that's not what I understood from your first post. I thought you meant a non Qt opengl program.

    WolfenQt is a Qt opengl program. It is not a non Qt opengl program.
    If what you want is a Qt opengl program, then please do say so. And in the future be as clear as possible.

    The wolfenqt example can be found on gitorious:
    http://qt.gitorious.org/qt-labs/wolfenqt
    Last edited by tbscope; 4th May 2011 at 08:27.

  7. #7
    Join Date
    May 2009
    Posts
    83

    Default Re: How to integrate / embed Qt application in other framework like OpenGL for exampl

    sorry i was wrong , in my last post you are right , i meant from none Qt openGL application .
    so this application no good for me

Similar Threads

  1. opengl widget not able to embed in QGraphicsView
    By wagmare in forum Qt Programming
    Replies: 4
    Last Post: 14th December 2010, 08:22
  2. Replies: 22
    Last Post: 14th October 2010, 18:44
  3. Embed external application
    By zeldaknight in forum Qt Programming
    Replies: 0
    Last Post: 21st August 2009, 01:34
  4. Replies: 6
    Last Post: 3rd May 2007, 16:17
  5. Embed a font in the application
    By Lele in forum Qt Programming
    Replies: 1
    Last Post: 26th October 2006, 10:47

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.