#19 WidgetStack unsupported

closed-fixed
None
5
2003-05-11
2003-05-03
Pascal Fleury
No

After having produced an application containing a WidgetStack,
I have puic -x -o'd it. However, running it gives me the following
error:

--- No method to call for :
QMainWindow::QWidgetStack(QWidget, 'widgetStac...')
at /usr/lib/perl5/site_perl/5.8.0/i686-linux/Qt.pm line 8.
DESTROY created new reference to dead object ' Qt::ListView'
during global destruction.

I think this is because of a missing constructor for the WidgetStack
class. Removing WidgetStack from the GUI made the GUI run happily
ever after.

I also could reproduce the bug in simply adding a WidgetStack
anywhere.

I am using the following:
qt-3.1.2
PerlQt 3.006 (with included smokeqt)
perl 5.8.0
all compiled from sources (Gentoo linux)

Discussion

  • germain garand
    germain garand
    2003-05-10

    Logged In: YES
    user_id=145773

    Hello,
    mhh... it rather looks like a bug in puic.

    QWidgetStack has been forgotten in the widget database, so it output:
    QWidgetStack(...)
    instead of
    Qt::WidgetStack(...)

    I'll fix that. In the meantime, you can change the file produced by puic by
    hand ( or with something like perl -pi -e 's/QWidget/Qt::Widget/g' foo.pl )

    Thanks,
    Germain

     
  • germain garand
    germain garand
    2003-05-10

    • assigned_to: nobody --> germaingarand
     
  • germain garand
    germain garand
    2003-05-11

    • status: open --> open-fixed
     
  • germain garand
    germain garand
    2003-05-11

    Logged In: YES
    user_id=145773

    fixed in CVS

     
  • germain garand
    germain garand
    2003-05-11

    • status: open-fixed --> closed-fixed