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 and radio buttons
Forum Updated to NodeBB v4.3 + New Features

QWizard and radio buttons

Scheduled Pinned Locked Moved Unsolved General and Desktop
qwizardpageqradiobuttonqwizard
2 Posts 2 Posters 371 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.
  • V Offline
    V Offline
    voltron
    wrote on 12 Jun 2023, 10:01 last edited by
    #1

    I'm building a non-linear wizard. The first wizard page has two radio buttons and depending on the user choice the wizard should go one way or another.

    How I can remember which radio button was activated? As I understand, registerField is not an option as both of the radiobuttons can not be required.

    As a workaround I use a hidden QLineEdit which is populated with some constant text depending on the activated radio button. But maybe there is a more correct way of doing this?

    J 1 Reply Last reply 12 Jun 2023, 10:41
    0
    • V voltron
      12 Jun 2023, 10:01

      I'm building a non-linear wizard. The first wizard page has two radio buttons and depending on the user choice the wizard should go one way or another.

      How I can remember which radio button was activated? As I understand, registerField is not an option as both of the radiobuttons can not be required.

      As a workaround I use a hidden QLineEdit which is populated with some constant text depending on the activated radio button. But maybe there is a more correct way of doing this?

      J Offline
      J Offline
      JonB
      wrote on 12 Jun 2023, 10:41 last edited by
      #2

      @voltron
      I don't read QWizardPage::registerField() as making the widget mandatory to fill out? Only if you choose to make it compulsory.

      1 Reply Last reply
      0

      2/2

      12 Jun 2023, 10:41

      • Login

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