Results 1 to 3 of 3

Thread: Making an executible started from my app run non-minimized

  1. #1
    Join Date
    Dec 2007
    Location
    Austin, TX
    Posts
    43
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    12

    Question Making an executible started from my app run non-minimized

    I have a QT application which allows the user to start other executables (using QProcess::startDetached() to run them). Sometimes, the new app is run behind my app (users say it is minimized, but that's because it's behind the maximized app). Is there a way to push the new executable to the front? I'll accept a parameter for QProcess or another call. This runs under Linux & Windows, but the problem only seems to occur under Windows.

    Thanks,

    Vycke

  2. #2
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    8
    Thanked 133 Times in 128 Posts

    Default Re: Making an executible started from my app run non-minimized

    Windows dosent allow you to bring any other application in front if the user is working on some other application. I assume that the new app is started by pressing a button on your main app. So your main app has the keyboard focus, thats why the new app is always behind it. Try to minimize your main window before launching the new app.

  3. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: Making an executible started from my app run non-minimized

    ... if you don't want that your app is minimized, you can give QWidget::clearFocus() a try.

Similar Threads

  1. Start application minimized or normal
    By matze in forum Qt Programming
    Replies: 3
    Last Post: 12th January 2010, 15:57
  2. QProcess starting minimized
    By kobus in forum Qt Programming
    Replies: 1
    Last Post: 12th August 2009, 00:01
  3. Replies: 5
    Last Post: 19th September 2008, 16:24
  4. Start Minimized
    By December in forum Qt Programming
    Replies: 2
    Last Post: 20th October 2007, 08:02
  5. QProcess starting minimized
    By moe in forum Qt Programming
    Replies: 4
    Last Post: 3rd March 2007, 09:32

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.