Noon
Noon

Reputation: 1211

get active item in a card layout

is there a way to get the active item of a card layout panel?

I used to use it until the last update [ today ]. after update it just stopped !!

is there any other way to check which panel/card is activated ?

Upvotes: 3

Views: 5622

Answers (1)

Varun Achar
Varun Achar

Reputation: 15109

panel.getLayout().getActiveItem() is the method to use.

Here's the documentation

That is the recommended method. You don't need to look for alternatives.

Upvotes: 3

Related Questions