Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8151445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T15:23:29+00:00 2026-06-06T15:23:29+00:00

I suspect that I am trying to bend a QWizardPage to do more than

  • 0

I suspect that I am trying to bend a QWizardPage to do more than it is supposed to which is why I am running into issues but maybe there is a way to do this.

So, I have a number of pages within a QWizard and on one certain page I run a series of tests against some hardware that then stores results in a database. I want to be able to cancel if necessary. However at the moment the Cancel button is part of the QWizard so i am not sure how to handle it.

I am aware I can overide the reject() function of QWizard and then determine the current page and if it is the page I am interested in then do something but I would rather not tie the pages togehter in this way unless I have to.

I did try to connect the rejected() signal to the wizard like this:

connect(this, SIGNAL(rejected()), ui->runTestPage, SLOT(on_rejected()));

But this instantly closes the page anyway before I can display anything back to the user to say I am cancelling.

I could add a button to the wizard page that will display when the test is running to allow a cancel but then the page still has the main cancel button. In fact even after the test is complete the Cancel still displays so being able to remove or disable that would seem appropriate.

So is this something I can do or do I need to revisit the entire use of a wizard?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T15:23:31+00:00Added an answer on June 6, 2026 at 3:23 pm

    Yes it’s doable. First you don’t necessarily need to override rejected(), I’d go down the route of getting rid of the QWizard cancel button and instead insert your own QPushButton (or whichever) pointing to your own slot, do your ‘cancelling now’ message box from there and then trigger the rejected() slot.

    It’ll save you a lot of headaches from massaging the default signal/slots, and allow you to replace ‘Cancel’ with ‘Close’ which possibly makes more sense in the context of a wizard (depending on the wizard, functionality etc etc).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I suspect that this is impossible, but I'm trying to be optimistic... I'm running
I suspect the answer is probably no, but just in case, is there a
I am trying to view the entries into my sql database that were entered
I have a three different tables that I'm trying to join up correctly but
I am trying to run this test, but I am running int a problem.
Just trying to implement mobFox into my app, but having trouble to make it
I'm trying to do something like this, but Java won't let me. I suspect
I'm trying to gauge the CPU utilization level during a long-running process. I suspect
I suspect that calls from separate threads (>15) are having a negative effect on
I suspect that adding a certain letter/character to the beginning of my text will

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.