Qt Forum

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

    Unsolved Copying combo box items in qt designer

    General and Desktop
    3
    3
    3376
    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.
    • W
      WhatIf last edited by WhatIf

      Hi,

      I'm trying to copy a combo box from on stacked widget page to another. It has a long list that I added by right clicking and choosing Edit items... The list won't change but it's long. I tried to copy/paste but got this message

      Cannot paste widgets. Designer could not find a container without a layout to paste into.
      Break the layout of the container you want to paste into, select this container an then paste again.

      The page I'm trying to paste the combo box into has a grid layout. Is there a way to get around breaking the entire page layout so I can past the box into one of the gird layout cells?

      Or is there a way to copy/paste the items from one combo box to another?

      mrjj 1 Reply Last reply Reply Quote 0
      • dheerendra
        dheerendra Qt Champions 2022 last edited by

        Can you try to break the layout in source widget and destination widgets, copy only combo box ,paste the same ? You are trying to copy the combo box to destination where it has layout already. Breaking layout in the of target widget should solve your issue. Copying comboBox from one widget to other widget works much issues.

        Dheerendra
        @Community Service
        Certified Qt Specialist
        http://www.pthinks.com

        1 Reply Last reply Reply Quote 5
        • mrjj
          mrjj Lifetime Qt Champion @WhatIf last edited by

          @WhatIf

          Hi, often I can get around it by pasting it to
          mainwindow and then drag into the page.

          Also what version of Creator (look in about) are you using?
          It seems V4 dont say this so often.
          Yet to see it after upgrade. could be random.

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