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

  • SEARCH
  • Home
  • 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 8147915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:30:57+00:00 2026-06-06T14:30:57+00:00

I am using a set of QWizardPage classes within a QWizard. Separate to this

  • 0

I am using a set of QWizardPage classes within a QWizard. Separate to this I have a login dialog that takes information and reads from a database. This database information is then stored within a struct I have created.

I want to avoid tight-coupling and global data (and correspondingly Singletons) if I can as I want to try and carry out things in the best way.

Now firstly I currently create the wizard during the initialisation of the application and use a signal/slot to sent the struct to the wizard. This of course means that the wizard has to exist when I create the login form. The other way I suppose is to add a public function to the wizard or update the constructor. But that then means I need to pass the data along into the wizard pages as I create them. Is there a better way to do that, maybe along the lines of the associated part to this question:

The other thing is that I read information from the database at certain stages during the wizard. If you use registerField() it seems a nice way to do this but the information I have read from the database is not stored in a widget so I cannot see how to access this data from other pages. Is there a way to do this?

Many thanks

  • 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-06T14:30:59+00:00Added an answer on June 6, 2026 at 2:30 pm

    There is probably a better way to do this but what I dound was that i can create properties in my code and then use registerField against those. The example here is very simple but by doing this I can register against anything I needed. I think if you start having more complicated properties that aren’t the “normal” types then it might well get a bit more complicated.

    Q_PROPERTY(int settingID READ getSettingID)
    
    public:
        int getSettingID() const;
    

    Then in the code:

    registerField("test_setting", this, "settingID");
    
    int TestSettingsWizardPage::getSettingID() const
    { 
        // Return the value here
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a file that I set using PowerShell that contains the version number
I have a parent class which contains a child object. I am using set
The documentation for set local states: Note that SET LOCAL will appear to have
I have two separate instances of Vim running. I would like to set up
I am using: set constraints all deferred; (lots of deletes and inserts) commit; This
I have my Vim window set to 90 columns using set columns=90 , but
How can letrec be implemented without using set! ? It seems to me that
I have vi bindings working in my bash shell using set -o vi in
I have a branch I've already pushed to github using --set-upstream. I want to
I'm trying to solve this problem in a pure-functional way, without using set! .

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.