[Qt-interest] does WA_ShowWithoutActivating work with QMainWindow?

Cecilia Castillo castillo23 at llnl.gov
Tue Jul 21 20:32:52 CEST 2009


Well, I run on a Mac, but I use x11 to open a window on a linux box 
and I launch the app from there.  But we want to be able to do this 
from all the platforms we support (Mac, linux, aix) either directly 
on that platform or via a x11 window.

Cecilia


>On Fri, Jul 17, 2009 at 4:14 PM, Cecilia Castillo<castillo23 at llnl.gov> wrote:
>>  I am trying to bring up my main application window in the background
>>  by calling setAttribute(Qt::WA_ShowWithoutActivating) before calling
>>  show(), however it does not seem to work.  I have also tried
>>  setFocusPolicy(Qt::NoFocus) too, but this does not help
>>
>
>Could you mention in which platform/system are you trying this, please?
>I don't have an answer for your question, but I think this could be
>dependant on the window manager.
>
>>
>>  I want to bring up the application but not let it take focus.  Is
>>  there any way to do this?
>>
>>  Cecilia
>
>_______________________________________________
>Qt-interest mailing list
>Qt-interest at trolltech.com
>http://*lists.trolltech.com/mailman/listinfo/qt-interest




More information about the Qt-interest-old mailing list