Extension Dialog (Slide-out window idea)



  • I am trying to accomplish a slide out window on the side of my application, so if a button is pressed on the main form (located on the right side border of the window), then a dialog/window appears (the animation isn't required at this moment in time) to the right side of the main form. I am not looking to just extend the main form and add the elements.

    Now the tricky part of this is that when the main form moves, the dialog must move with it, essentially being attached to the main window.

    Heres an example (notice how it is behind the main form).
    http://www.gomediazine.com/wp-content/images/2009/10/fontsleuth2.jpeg

    Does anyone know of a good way to implement this? is there a good qt way to do this?



  • On the Mac you can just use the Qt::Drawer-style for Qt::WindowType. I think on other platforms, however, you will have to basically hand-code the whole thing.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.