HbQt - QStackedWidget

46 views
Skip to first unread message

Luigi Ferraris

unread,
Jun 3, 2013, 12:28:24 PM6/3/13
to qtcon...@googlegroups.com
Hi Pritpal.

It seems that QStackedWidget doesn't accept derived object.

This code works fine:
oWidget := QWidget()
oStacked := QStackedWidget()
oStacked:addWidget( oWidget )

This code doesn't works:
oWidget := myWidget() ---> obviously myWidget INHERIT hb_QWidget
oStacked := QStackedWidget()
oStacked:addWidget( oWidget )

Cheers

Luigi Ferraris


Pritpal Bedi

unread,
Jun 3, 2013, 7:20:51 PM6/3/13
to qtcon...@googlegroups.com
Hi Luigi
Francessco, this seems to be repliable by you...


Pritpal Bedi 

Luigi Ferraris

unread,
Jan 11, 2014, 6:36:13 PM1/11/14
to qtcon...@googlegroups.com
Hi Pritpal,
I confirm this situation.
Somewhere QStackedWidget doesn't check (like) :isDerivedFrom( "QWIDGET" ); it seems check :className().
So, I'm unable to use QStackedWidget.
BR
Luigi Ferraris
Reply all
Reply to author
Forward
0 new messages