[Qt-interest] does WA_ShowWithoutActivating work with QMainWindow?

Diego Schulz dschulz at gmail.com
Sat Jul 18 01:44:38 CEST 2009


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




More information about the Qt-interest-old mailing list