c++ - Qt floating widget anchoring -


i have window qt layers , widgets. have couple of floating widgets in window. "floating" mean childs of window not belong layout. these widgets serve different helper purposes, let's describe of them clarify , why i'm looking for:

  • qlabel should pop on screen center in rare cases. should overlap other "layered" widgets , on top time;
  • a couple of qsliders video volume , video progress. should appear on hover in bottom of window , overlap other "layered" widgets.

so, question how anchor these floating widgets window parts: center, bottom, top? possibility see far reimplement window's resizeevent , manually recalculate position of floating widgets, not beautiful solution.

is there way simpler , more automaticly qspaceritem? imagination draws me "z-stacked layer panes", have independent composing , shown/drawn in z-order deepest front. not supported qt.


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -