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

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -