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
QtWS25 Last Chance

QWizard destruction ISSUE/BUG

Scheduled Pinned Locked Moved General and Desktop
qwizard
4 Posts 2 Posters 912 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 14 Feb 2016, 00:43 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

    K 1 Reply Last reply 14 Feb 2016, 15:52
    0
    • K Kaluss
      14 Feb 2016, 00:43

      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

      K Offline
      K Offline
      kshegunov
      Moderators
      wrote on 14 Feb 2016, 15:52 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 15 Feb 2016, 16:03 last edited by
        #3

        I add some qDebug() logs into virtual destructors.

        K 1 Reply Last reply 15 Feb 2016, 16:57
        0
        • K Kaluss
          15 Feb 2016, 16:03

          I add some qDebug() logs into virtual destructors.

          K Offline
          K Offline
          kshegunov
          Moderators
          wrote on 15 Feb 2016, 16:57 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

          4/4

          15 Feb 2016, 16:57

          • Login

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