Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

    Unsolved How to add Label in predefined page?

    General and Desktop
    2
    7
    272
    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.
    • N
      narae last edited by

      Hello,

      I have removed title and I changed labeMessage.
      So Installation page shown as below image.
      sample7.PNG

      However, StartMenuDirectoryPage have not labelMessage.
      So I can't put text in content area.

      How to put text in content area in StartMenuDirectoryPage?
      Or How to add Label in StartMenuDirectoryPage?

      1 Reply Last reply Reply Quote 0
      • B
        Bonnie last edited by

        I haven't tried that but I think you should look at installer.addWizardPageItem.
        Maybe Register File Extension Example could be a good example.
        It adds a checkbox to TargetDirectory page.

        But that would eventually call addWidget on the page's layout.
        So I think the custom widget could only be added to the bottom part.
        If you want it on the top part of the page content, then I have no idea. Maybe better using the sub title.

        N 1 Reply Last reply Reply Quote 0
        • N
          narae @Bonnie last edited by

          @Bonnie Thank for your answer. How should I use the sub title?

          B 1 Reply Last reply Reply Quote 0
          • B
            Bonnie @narae last edited by

            @narae
            You had tried changing title in the script, sub title is similar. Every page has it.

            widget.title = "New title";
            widget.subTitle = "New Sub title";
            

            It will show under the title, and supports rich text.

            Sometime there's already text in the sub title (like in the StartMenuDirectory page) and you may want to keep it and just append to it.

            widget.subTitle = widget.subTitle + "<br/>New Sub title";
            
            N 1 Reply Last reply Reply Quote 0
            • N
              narae @Bonnie last edited by

              @Bonnie Thanks. But I need put text in content area not on the banner.

              B 1 Reply Last reply Reply Quote 0
              • B
                Bonnie @narae last edited by Bonnie

                @narae
                I know. I said in that way I can only think of how to add label to the bottom part.
                Sub title is another choice I offered.
                If you insist the top part of the content area, then I really have no idea so I can't help you.

                N 1 Reply Last reply Reply Quote 0
                • N
                  narae @Bonnie last edited by

                  @Bonnie ok. thanks

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