[Interest] bad behavior using window flags
Ing. Rayner Pupo Gomez
rpgomez at uci.cu
Fri Nov 8 17:39:57 CET 2013
Hello, I'm having some issues on setting window flags on a custom widget. I want to toggle in/out a widget from its parent using Qt::Window and Qt::Widget flags but it doesnt work on 100 percent of cases, sometimes (random actually) setting the Qt::Widget flag to restore the widget as its parent content, this child continue on a sepparate window and strange contents are draw on parent. After this odd cases myWidget->isWindow() returns false but it still on its own window.
BTW I start a fresh project that only contains "attaching-dettaching" of a widget code and responds ok 100% of cases, but I dont know why my Widget sometimes fails.
TIP: MyWidget is just a QWidget subclass that contains a QVideoWidget
________________________________________________________________________________________________
III Escuela Internacional de Invierno en la UCI del 17 al 28 de febrero del 2014. Ver www.uci.cu--=_facf3d84-a8f5-41ca-9930-d1d40f836292
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit
<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'>Hello, I'm having some issues on setting window flags on a custom widget. I want to toggle in/out a widget from its parent using Qt::Window and Qt::Widget flags but it doesnt work on 100 percent of cases, sometimes (random actually) setting the Qt::Widget flag to restore the widget as its parent content, this child continue on a sepparate window and strange contents are draw on parent. After this odd cases myWidget->isWindow() returns false but it still on its own window. <br>BTW I start a fresh project that only contains "attaching-dettaching" of a widget code and responds ok 100% of cases, but I dont know why my Widget sometimes fails.<br>TIP: MyWidget is just a QWidget subclass that contains a QVideoWidget<br></div>
<br>
<html>
<body>
<hr align="LEFT" size="1" width="630" color="Black" noshade>
<p>III Escuela Internacional de Invierno en la UCI del 17 al 28 de febrero del 2014. Ver <a href="http://www.uci.cu/"> www.uci.cu </a>
<!--<img src="http://universidad.uci.cu/cinta.png"/>-->
</body>
</html>
<br>
</body></html>
More information about the Interest
mailing list