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 Updated to NodeBB v4.3 + New Features

How to add Label in predefined page?

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 2 Posters 640 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
    #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 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
      0
      • B Bonnie

        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 last edited by
        #3

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

        B 1 Reply Last reply
        0
        • N narae

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

          B Offline
          B Offline
          Bonnie
          wrote on 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
          0
          • B Bonnie

            @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 last edited by
            #5

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

            B 1 Reply Last reply
            0
            • N narae

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

              B Offline
              B Offline
              Bonnie
              wrote on last edited by Bonnie
              #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
              0
              • B 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 Offline
                N Offline
                narae
                wrote on last edited by
                #7

                @Bonnie ok. thanks

                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