Results 1 to 2 of 2

Thread: Minimize other Window

  1. #1

    Question Minimize other Window

    I'm using Qt-4.3.0. In my program, I have used QProcess to start an exe. Now, i would like to minize that window. how can I do that? My code is very simple.

    QProcess process;
    process.execute("notepad.exe");

    Now, I want to minimize the notepad application. Because when I run my program, the notepad becaomes the active window. I want my application to be active at the same time, i would like to minimze the notepad's window.

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Minimize other Window

    The only way is to send a minimize message to the notepad instance with SendMessage.
    But what if you have more than one notepad instance? The problem is how do you identify the instance you started.

Similar Threads

  1. Restore the size of the window after minimize
    By SkripT in forum Qt Programming
    Replies: 10
    Last Post: 22nd September 2016, 16:23
  2. Problem hiding main window on minimize
    By bpetty in forum Newbie
    Replies: 5
    Last Post: 18th September 2007, 17:41
  3. Regarding drawing on Transparent Window
    By Shalabh in forum Qt Programming
    Replies: 3
    Last Post: 31st May 2007, 10:32
  4. move parent window to the front.
    By hvengel in forum Qt Programming
    Replies: 4
    Last Post: 2nd February 2007, 08:41
  5. cannot make a main window modal
    By Dark_Tower in forum Qt Programming
    Replies: 12
    Last Post: 23rd March 2006, 10:21

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.