Results 1 to 6 of 6

Thread: External Program Management with Qt

  1. #1
    Join Date
    Apr 2009
    Location
    Varese
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default External Program Management with Qt

    Hi,

    I'm trying to made an application that does the followig operation:
    1) able to start an external program
    2) show/hide external application when required
    3) set on top or not the external program
    4) move and resize the window of the external program

    I'm using QT to be able to easily move the code to another target.
    I found QProcess object that allows to start an external program, but with QProcess I did'n found how to show/hide and mainly how to manage the external program, I'm able only to kill it.

    is there someone that can help me????

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: External Program Management with Qt

    Is this external program an arbitrary program or did you write it yourself?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Apr 2009
    Location
    Varese
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: External Program Management with Qt

    It is a general program, I haven't source code of it, but for sure I know that it is not a console application and it has a graphical window.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: External Program Management with Qt

    Then you won't be able to do it in a cross-platform way. On Windows you can use PostMessage/SendMessage, on Unix you have to use X11 calls. On other platforms you're on your own.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Apr 2009
    Location
    Varese
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: External Program Management with Qt

    Ok, thanks...

    so I need to use X11, because I want to use it on linux.
    I have fedora 8 distribution and I can't change it.
    do I need to install something to use X11 features?
    where I can find documentation ???

    thank you very much

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: External Program Management with Qt

    You don't need anything extra. Just read XLib documentation.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Q3ScrollView resists to scroll down to the garbage bin
    By sivrisinek in forum Qt Programming
    Replies: 0
    Last Post: 5th February 2009, 17:50
  2. Replies: 16
    Last Post: 23rd May 2008, 10:12
  3. Replies: 19
    Last Post: 21st January 2008, 09:13
  4. I start a external fortram program, how to terminate?
    By dolphins in forum Qt Programming
    Replies: 3
    Last Post: 28th October 2007, 13:07
  5. QT MySQL
    By sabeeshcs in forum Newbie
    Replies: 6
    Last Post: 12th January 2007, 04:19

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.