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. What is type of gui.currentPageWidget() ?
Forum Updated to NodeBB v4.3 + New Features

What is type of gui.currentPageWidget() ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 284 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.
  • N Offline
    N Offline
    narae
    wrote on last edited by narae
    #1

    I looked these code from https://doc.qt.io/qtinstallerframework/noninteractive.html#writing-control-scripts

    function Controller()
    {
    }
    
    Controller.prototype.IntroductionPageCallback = function()
    {
        var widget = gui.currentPageWidget(); // get the current wizard page
        if (widget != null) {
            widget.title = "New title."; // set the page title
            widget.MessageLabel.setText("New Message."); // set the welcome text
        }
    }
    
    Controller.prototype.TargetDirectoryPageCallback = function()
    {
        gui.clickButton(buttons.NextButton); // automatically click the Next button
    }
    

    gui.currentPageWidget() Returns the current wizard page of object type.

    I looked QWizard, QWizardpage document.
    https://doc.qt.io/qt-5/qwizard.html
    https://doc.qt.io/qt-5/qwizardpage.html

    but there are not MessageLabel in documents.

    Where I find elements of gui.currentPageWidget() ?

    jsulmJ JonBJ 2 Replies Last reply
    0
    • N narae

      I looked these code from https://doc.qt.io/qtinstallerframework/noninteractive.html#writing-control-scripts

      function Controller()
      {
      }
      
      Controller.prototype.IntroductionPageCallback = function()
      {
          var widget = gui.currentPageWidget(); // get the current wizard page
          if (widget != null) {
              widget.title = "New title."; // set the page title
              widget.MessageLabel.setText("New Message."); // set the welcome text
          }
      }
      
      Controller.prototype.TargetDirectoryPageCallback = function()
      {
          gui.clickButton(buttons.NextButton); // automatically click the Next button
      }
      

      gui.currentPageWidget() Returns the current wizard page of object type.

      I looked QWizard, QWizardpage document.
      https://doc.qt.io/qt-5/qwizard.html
      https://doc.qt.io/qt-5/qwizardpage.html

      but there are not MessageLabel in documents.

      Where I find elements of gui.currentPageWidget() ?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2
      This post is deleted!
      1 Reply Last reply
      0
      • N narae

        I looked these code from https://doc.qt.io/qtinstallerframework/noninteractive.html#writing-control-scripts

        function Controller()
        {
        }
        
        Controller.prototype.IntroductionPageCallback = function()
        {
            var widget = gui.currentPageWidget(); // get the current wizard page
            if (widget != null) {
                widget.title = "New title."; // set the page title
                widget.MessageLabel.setText("New Message."); // set the welcome text
            }
        }
        
        Controller.prototype.TargetDirectoryPageCallback = function()
        {
            gui.clickButton(buttons.NextButton); // automatically click the Next button
        }
        

        gui.currentPageWidget() Returns the current wizard page of object type.

        I looked QWizard, QWizardpage document.
        https://doc.qt.io/qt-5/qwizard.html
        https://doc.qt.io/qt-5/qwizardpage.html

        but there are not MessageLabel in documents.

        Where I find elements of gui.currentPageWidget() ?

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #3

        @narae said in What is type of gui.currentPageWidget() ?:

        Where I find elements of gui.currentPageWidget() ?

        I know nothing about this(!), so it may be obvious to you/unhelpful, but a direct answer to your question seems to be on the same page you referenced, but at https://doc.qt.io/qtinstallerframework/noninteractive.html#introduction-page?

        N 1 Reply Last reply
        2
        • JonBJ JonB

          @narae said in What is type of gui.currentPageWidget() ?:

          Where I find elements of gui.currentPageWidget() ?

          I know nothing about this(!), so it may be obvious to you/unhelpful, but a direct answer to your question seems to be on the same page you referenced, but at https://doc.qt.io/qtinstallerframework/noninteractive.html#introduction-page?

          N Offline
          N Offline
          narae
          wrote on last edited by
          #4

          @JonB Thank you. I missed it.

          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