[Interest] QWidget::show()

2015-09-18 Thread Igor Mironchik
Hi,

If in some method create QWidget and invoke show() on it when this 
widget will be shown? Immediately or only after finish of method from 
within show() was invoked?

-- 
Best Regards,
Igor Mironchik.

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QWidget::show()

2015-09-18 Thread Giuseppe D'Angelo

Il 18/09/2015 22:23, Igor Mironchik ha scritto:

If in some method create QWidget and invoke show() on it when this
widget will be shown? Immediately or only after finish of method from
within show() was invoked?


Neither: some time after you return to the event loop.

Cheers,
--
Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Software Engineer
KDAB (UK) Ltd., a KDAB Group company | Tel: UK +44-1625-809908
KDAB - The Qt Experts



smime.p7s
Description: Firma crittografica S/MIME
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QWidget::show()

2015-09-18 Thread Thiago Macieira
On Friday 18 September 2015 23:23:16 Igor Mironchik wrote:
> Hi,
> 
> If in some method create QWidget and invoke show() on it when this
> widget will be shown? Immediately or only after finish of method from
> within show() was invoked?

Qt will ask immediately that it be shown. When the user sees it, that's 
another story. Please consult your window manager for this.

Note that the drawing of the contents of this widget will only happen once the 
window manager tells Qt that the widget is shown and needs repainting. That 
can happen two years after you called show().

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest