Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved How to take user input in Qt Installer Framework?

    General and Desktop
    2
    3
    232
    Loading More Posts
    • 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
      akhi95 last edited by akhi95

      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.

      sierdzio 1 Reply Last reply Reply Quote 0
      • sierdzio
        sierdzio Moderators @akhi95 last edited by

        @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 Reply Quote 1
        • sierdzio
          sierdzio Moderators @akhi95 last edited by

          @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 Reply Quote 1
          • A
            akhi95 @sierdzio last edited by

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

            1 Reply Last reply Reply Quote 0
            • First post
              Last post