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. How to add Label in predefined page?
Forum Update on Monday, May 27th 2025

How to add Label in predefined page?

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 2 Posters 586 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 30 Aug 2020, 08:43 last edited by
    #1

    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
    0
    • B Offline
      B Offline
      Bonnie
      wrote on 30 Aug 2020, 17:12 last edited by
      #2

      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 31 Aug 2020, 00:51
      0
      • B Bonnie
        30 Aug 2020, 17:12

        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 Offline
        N Offline
        narae
        wrote on 31 Aug 2020, 00:51 last edited by
        #3

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

        B 1 Reply Last reply 31 Aug 2020, 02:40
        0
        • N narae
          31 Aug 2020, 00:51

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

          B Offline
          B Offline
          Bonnie
          wrote on 31 Aug 2020, 02:40 last edited by
          #4

          @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 1 Sept 2020, 04:42
          0
          • B Bonnie
            31 Aug 2020, 02:40

            @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 Offline
            N Offline
            narae
            wrote on 1 Sept 2020, 04:42 last edited by
            #5

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

            B 1 Reply Last reply 1 Sept 2020, 06:39
            0
            • N narae
              1 Sept 2020, 04:42

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

              B Offline
              B Offline
              Bonnie
              wrote on 1 Sept 2020, 06:39 last edited by Bonnie 9 Jan 2020, 06:45
              #6

              @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 2 Sept 2020, 09:50
              0
              • B Bonnie
                1 Sept 2020, 06:39

                @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 Offline
                N Offline
                narae
                wrote on 2 Sept 2020, 09:50 last edited by
                #7

                @Bonnie ok. thanks

                1 Reply Last reply
                0

                1/7

                30 Aug 2020, 08:43

                • Login

                • Login or register to search.
                1 out of 7
                • First post
                  1/7
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved