c++ - Removing portion of QWidget -


i pretty new qt. have qmainwindow on which, popup dialog displayed. requirement remove portion of popup dialog, means, contents of main window should visible in particular region of popup dialog.

does wt allows such thing..? guidance appreciated

you can install opacity effect on widgets

qgraphicsopacityeffect * effect = new qgraphicsopacityeffect(widget); effect->setopacity(0.5); widget->setgraphicseffect(effect); 

but can hide widget retaining space occupied widget:

qsizepolicy sp_retain = widget->sizepolicy(); sp_retain.setretainsizewhenhidden(true); widget->setsizepolicy(sp_retain); widget->hide(); 

Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

post - imageshack API cURL -