Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Page Components not working in Stackview

Page Components not working in Stackview

Scheduled Pinned Locked Moved Solved QML and Qt Quick
4 Posts 2 Posters 329 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.
  • V Offline
    V Offline
    Vijaykarthikeyan
    wrote on last edited by
    #1

    I have an Application Window where I have created stackview and loading several pages. When loaded,the components inside the pages are visible but the mouseclick and other events are not working.

            Display_Page
            {
                id:main_page
                background: Rectangle
                {
                    color:"transparent"
                }
            }
            StackView
            {
                id:stack
                anchors.fill:parent
                initialItem: main_page
    
            }
    

    In this code,the Components inside the main_page object is visible but events are not working. When separately running that page in another individual application,it is working

    Ronel_qtmasterR 1 Reply Last reply
    0
    • V Vijaykarthikeyan

      I have an Application Window where I have created stackview and loading several pages. When loaded,the components inside the pages are visible but the mouseclick and other events are not working.

              Display_Page
              {
                  id:main_page
                  background: Rectangle
                  {
                      color:"transparent"
                  }
              }
              StackView
              {
                  id:stack
                  anchors.fill:parent
                  initialItem: main_page
      
              }
      

      In this code,the Components inside the main_page object is visible but events are not working. When separately running that page in another individual application,it is working

      Ronel_qtmasterR Offline
      Ronel_qtmasterR Offline
      Ronel_qtmaster
      wrote on last edited by Ronel_qtmaster
      #2

      @Vijaykarthikeyan What about this ?

          StackView
          {
              id:stack
              anchors.fill:parent
              initialItem:  Display_Page
                      {
                          id:main_page
                          background: Rectangle
                          {
                              color:"white"
                          }
                      }
      
          }
      
      V 1 Reply Last reply
      1
      • Ronel_qtmasterR Ronel_qtmaster

        @Vijaykarthikeyan What about this ?

            StackView
            {
                id:stack
                anchors.fill:parent
                initialItem:  Display_Page
                        {
                            id:main_page
                            background: Rectangle
                            {
                                color:"white"
                            }
                        }
        
            }
        
        V Offline
        V Offline
        Vijaykarthikeyan
        wrote on last edited by
        #3

        @Ronel_qtmaster Yes It is working.Thank you so much.Can u Please explain Why? Because I couldn't find anything in the forum.

        Ronel_qtmasterR 1 Reply Last reply
        0
        • V Vijaykarthikeyan has marked this topic as solved on
        • V Vijaykarthikeyan

          @Ronel_qtmaster Yes It is working.Thank you so much.Can u Please explain Why? Because I couldn't find anything in the forum.

          Ronel_qtmasterR Offline
          Ronel_qtmasterR Offline
          Ronel_qtmaster
          wrote on last edited by
          #4

          @Vijaykarthikeyan Hi.I think it might be related to the transparent color.Also, when you customize a control, make sure to define the width/implicitwidth and height/implecitheight .You can find more details in the documentation

          1 Reply Last reply
          1

          • Login

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