Qt Forum

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

    Qt Installer Framework Hide Buttons

    Installation and Deployment
    qtifw installer framework hide button buttons
    4
    4
    3146
    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.
    • C
      circlesquare last edited by

      Hi,

      I'm trying to change the buttons on the pages of the Qt Installer Framekwork.
      After the package updater is completed, there are two buttons available to the user: Restart and Finish. I would like to disable the Restart Button.
      I have tried

      Controller.prototype.FinishedPageCallback = function ()
      {
        var widget = gui.currentPageWidget();
        widget.CommitButton.hide();
      }
      

      but it did not work.
      What is the correct way to disable this button?

      C 1 Reply Last reply Reply Quote 0
      • J
        JeroenDierckx last edited by

        I wanted to do the same thing because our clients were confused about the restart button - they thought it would restart the application, not the maintenance tool.

        I didn't find a solution. The widget doesn't contain the buttons. There is a buttons variable you can use, but it contains the IDs of the buttons, not instances of something you can manipulate.

        What I ended up doing was automatically click finish in that dialog, automatically starting our application again:

        Controller.prototype.FinishedPageCallback = function()
        {
            // Automatically press finish
            gui.clickButton(buttons.FinishButton);
        }
        

        Greetings,
        JeDi

        1 Reply Last reply Reply Quote 1
        • C
          chriskatze @circlesquare last edited by

          I have the same problem ...
          ... there is a bug-report (https://bugreports.qt.io/browse/QTIFW-711)
          ... but no solution.

          1 Reply Last reply Reply Quote 0
          • Z
            zattu last edited by

            これで行けました。

            function Controller()
            {

            }

            Controller.prototype.FinishedPageCallback = function()
            {
            buttons.CommitButton.hide();
            }

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