In Qt C++, how can I fully disable resizing a window including the resize icon when the mouse hovers the border? -
i used: setfixedsize(size());
stop window resizing, resize arrows still appear when mouse on border of window.
is there better way disable window resizing avoid showing arrows when crossing border?
try this:
this->statusbar()->setsizegripenabled(false);
if doesn't work, need detect widget activating qsizegrip. can installing event filter on app , try catch qsizegrip's mousemoveevent. debug parent widget.
here's example of eventfilter function use:
bool mainwindow::eventfilter(qobject *obj, qevent *event) { if(event->type() == qevent::mousemove) { qsizegrip *sg = qobject_cast<qsizegrip*>(obj); if(sg) qdebug() << sg->parentwidget(); } return false; }
you catch show event well, it's you.
Comments
Post a Comment