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 376 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 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?

    JonBJ 1 Reply Last reply
    0
    • V voltron

      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?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on 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

      • Login

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