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. How to take user input in Qt Installer Framework?
Forum Updated to NodeBB v4.3 + New Features

How to take user input in Qt Installer Framework?

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 503 Views 1 Watching
  • 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.
  • A Offline
    A Offline
    akhi95
    wrote on 12 Nov 2020, 05:06 last edited by akhi95 11 Dec 2020, 05:07
    #1

    In an installer page, I need to give a textbox, dropdown list or something like that to take user input. Then I need the value selected/entered by the user in one of my component script so that I can use the value for some other task. Is there a way of doing it? I tried using QWidgets like QComboBox, QSpinBox but their user input API is not exposed to JavaScript. Please help.

    S 1 Reply Last reply 12 Nov 2020, 06:05
    0
    • A akhi95
      12 Nov 2020, 05:06

      In an installer page, I need to give a textbox, dropdown list or something like that to take user input. Then I need the value selected/entered by the user in one of my component script so that I can use the value for some other task. Is there a way of doing it? I tried using QWidgets like QComboBox, QSpinBox but their user input API is not exposed to JavaScript. Please help.

      S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 12 Nov 2020, 06:05 last edited by
      #2

      @akhi95 said in How to take user input in Qt Installer Framework?:

      In an installer page, I need to give a textbox, dropdown list or something like that to take user input. Then I need the value selected/entered by the user in one of my component script so that I can use the value for some other task. Is there a way of doing it?

      Yes, see this example: https://doc.qt.io/qtinstallerframework/qtinstallerframework-dynamicpage-example.html

      I tried using QWidgets like QComboBox, QSpinBox but their user input API is not exposed to JavaScript. Please help.

      It is exposed, see the documentation: https://doc.qt.io/qtinstallerframework/noninteractive.html

      (Z(:^

      A 1 Reply Last reply 12 Nov 2020, 06:39
      1
      • S sierdzio
        12 Nov 2020, 06:05

        @akhi95 said in How to take user input in Qt Installer Framework?:

        In an installer page, I need to give a textbox, dropdown list or something like that to take user input. Then I need the value selected/entered by the user in one of my component script so that I can use the value for some other task. Is there a way of doing it?

        Yes, see this example: https://doc.qt.io/qtinstallerframework/qtinstallerframework-dynamicpage-example.html

        I tried using QWidgets like QComboBox, QSpinBox but their user input API is not exposed to JavaScript. Please help.

        It is exposed, see the documentation: https://doc.qt.io/qtinstallerframework/noninteractive.html

        A Offline
        A Offline
        akhi95
        wrote on 12 Nov 2020, 06:39 last edited by
        #3

        @sierdzio Thanks! I was following that example before as well. But another look now told me what I was missing :)

        1 Reply Last reply
        0

        3/3

        12 Nov 2020, 06:39

        • Login

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