Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt Installer Framework: How to disable/enable Next button in script
Forum Update on Monday, May 27th 2025

Qt Installer Framework: How to disable/enable Next button in script

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 950 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.
  • S Offline
    S Offline
    SafaAlfulaij
    wrote on 24 Sept 2019, 14:09 last edited by SafaAlfulaij
    #1

    Hello all.
    I'm trying to define a condition on the path allowed for my application to be installed to,. I'm detecting the textChanged signal from TargetDirectoryLineEdit QLineEdit, and doing my condition there.
    The issue is, whatever I use, I can't disable the "Next" button. Tried:
    ( var widget = gui.pageById(QInstaller.TargetDirectory);)
    widget.complete = false; and
    buttons.NextButton.disabled = false; and
    widget.setComplete(false);
    but nothing works (last isn't exposed to JS side).

    Any ideas?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 24 Sept 2019, 17:16 last edited by
      #2

      So the widget is the button? You should find the button and then call setEnabled(false) or button.enabled = false.

      That's my guess, I can't test now :/

      (Z(:^

      1 Reply Last reply
      0

      2/2

      24 Sept 2019, 17:16

      • 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