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. Copying combo box items in qt designer
QtWS25 Last Chance

Copying combo box items in qt designer

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 3.9k 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.
  • W Offline
    W Offline
    WhatIf
    wrote on last edited by WhatIf
    #1

    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?

    mrjjM 1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      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
      5
      • W 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?

        mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @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
        2

        • Login

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