[Qt-interest] Unable to hide widget

Alex Ivasyuv industral at gmail.com
Mon Nov 1 00:05:10 CET 2010


Hi,

I'm trying to hide one of widget in other another one, that was loaded 
from .ui, but it doesn't work.

// widget - loaded widget from .ui
QWidget * layerWidget = widget -> findChild<QWidget *> ("myWidget");
layerWidget -> hide(); // doesn't work

setVisible() also doesn't work.
I also tried update() and repaint() after that, but they also don't have 
any effect.

What's wrong?

Thanks,


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101101/63845f1e/attachment.html 


More information about the Qt-interest-old mailing list