QWizard destruction ISSUE/BUG



  • Hi,
    I got following problem with QWizard in Qt 5.5.0.

       this->addPage( new MyCustomPage1() );
       this->addPage( new MyCustomPage2() );
       this->addPage( new MyCustomPage3() );
    
    void InitWizard::onFinishSlot()
    {
            field( "SomeField" ).toString();
    }
    

    onFinishSlot is connected into QWizard::FinishButton clicked signal.

    If I will use in slot instruction: field( "SomeField" ).toString();
    Destructor of last added page is not being called.
    If I delete this instruction everything works fine.

    Do I do something wrong or it's a BUG ?

    Best regards,
    Tomek


  • Qt Champions 2016

    @Kaluss
    Hello Tomek,

    If I will use in slot instruction: field( "SomeField" ).toString();
    Destructor of last added page is not being called.
    If I delete this instruction everything works fine.

    How do you discern this?

    Kind regards.



  • I add some qDebug() logs into virtual destructors.


  • Qt Champions 2016

    @Kaluss
    Hello,
    I can't spot anything wrong, it may be a bug. Could you share a minimal working example that demonstrates the issue, so I can run it on my machine and we could compare.

    Kind regards.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.