Jasmijn
Jasmijn

Reputation: 10452

How to use QStackedWidget/QStackedLayout in PyQT/PyKDE?

I am trying to create a properties panel as part of a larger application, which uses PyKDE and PyQT. QStackedWidget and QStackedLayout look right, but the situation is a bit complicated:

Using a QStackedWidget means I can't add layouts (only widgets), using QStackedLayout results in all sorts of problems, because everything expects to work with widgets rather than layouts.

How can I get out of this mess?

Upvotes: 1

Views: 1871

Answers (1)

armonge
armonge

Reputation: 3138

Well you could add QFrames to your stacked widget and then adding the necessary widgets to the frame

Upvotes: 1

Related Questions