Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QWizard destruction ISSUE/BUG
QtWS: Super Early Bird Tickets Available!

QWizard destruction ISSUE/BUG

Scheduled Pinned Locked Moved General and Desktop
qwizard
4 Posts 2 Posters 817 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kaluss
    wrote on last edited by Kaluss
    #1

    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

    kshegunovK 1 Reply Last reply
    0
  • kshegunovK Offline
    kshegunovK Offline
    kshegunov Moderators
    replied to Kaluss on last edited by
    #2

    @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.

    Read and abide by the Qt Code of Conduct

    1 Reply Last reply
    0
  • K Offline
    K Offline
    Kaluss
    wrote on last edited by
    #3

    I add some qDebug() logs into virtual destructors.

    kshegunovK 1 Reply Last reply
    0
  • kshegunovK Offline
    kshegunovK Offline
    kshegunov Moderators
    replied to Kaluss on last edited by
    #4

    @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.

    Read and abide by the Qt Code of Conduct

    1 Reply Last reply
    0

  • Login

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved