4

I am designing an Application using the Qt framework, and I want to avoid using multiple dialogs simply because I think it can get messy with having many dialogs open. I was wondering if there was something like Java's CardLayout in the Qt Framework.

Thanks for your help.

W.K.S
  • 9,787
  • 15
  • 75
  • 122

1 Answers1

5

The QStackedWidget is very close to the CardLayout

The QStackedWidget class provides a stack of widgets where only one widget is visible at a time.

Add as many widgets as you want and every time you load it you can change the widget that is displayed by calling the setCurrentIndex

msrd0
  • 7,816
  • 9
  • 47
  • 82
pnezis
  • 12,023
  • 2
  • 38
  • 38
  • Hmmm....yes, but from the Documentation, it doesn't seem as though you can layout the widgets in a specified way. I'll play around with this and see how it goes. – W.K.S Nov 14 '11 at 16:56