Important: Please read the Qt Code of Conduct -

Is there a possibility to have expanding widget in front of other widget?

  • Hi,
    I have an app, that have one main widget (size of that widget is almost the same as size of window). Under this widget I want to have some widget that could expand whenever someone clicks on it.It should extend vertically - the width of that is the same as window. It should expand but also be on the top of that main widget when it is expanded.
    If one of the qt widgets allows that?

  • Frankly speaking I don't understand what you try to achieve, but I'm pretty sure that there is no such widget available in Qt.
    You will need to implement this behavior by yourself.
    Inherit new widget from QWidget and overwrite the event handlers.

    If you would draw a picture it may help us to help you.

Log in to reply