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 Hide Buttons
QtWS25 Last Chance

Qt Installer Framework Hide Buttons

Scheduled Pinned Locked Moved Installation and Deployment
qtifwinstallerframeworkhidebuttonbuttons
4 Posts 4 Posters 4.0k 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.
  • C Offline
    C Offline
    circlesquare
    wrote on 28 May 2015, 19:54 last edited by
    #1

    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 25 Apr 2016, 16:42
    0
    • J Offline
      J Offline
      JeroenDierckx
      wrote on 2 Jun 2015, 20:32 last edited by
      #2

      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
      1
      • C circlesquare
        28 May 2015, 19:54

        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 Offline
        C Offline
        chriskatze
        wrote on 25 Apr 2016, 16:42 last edited by
        #3

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

        1 Reply Last reply
        0
        • Z Offline
          Z Offline
          zattu
          wrote on 5 Oct 2020, 16:05 last edited by
          #4

          これで行けました。

          function Controller()
          {

          }

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

          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