Results 1 to 5 of 5

Thread: Copying contents of QTab

  1. #1
    Join Date
    May 2007
    Posts
    315
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Copying contents of QTab

    Hi. I've got a question. If I have a QTabWidget (in designer) can I copy all contents of one tab to the other tab? Regards

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Copying contents of QTab

    Doesn't CTRL+C, CTRL+V work?

    And if you're asking about doing that runtime:

    If you mean placing widgets from one tab in another tab, then yes, but the first tab will not contain them anymore. So you can't copy, but you can move them.

  3. #3
    Join Date
    May 2007
    Posts
    315
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Copying contents of QTab

    ctrl+c(v) works, but I can't select more than 1 object, I don't want to move them, and I can't copy it. Right?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Copying contents of QTab

    Quote Originally Posted by Salazaar View Post
    ctrl+c(v) works, but I can't select more than 1 object
    drag a rubber band or use shift or ctrl while selecting items.

    I don't want to move them, and I can't copy it. Right?
    You can during design time (but they will be separate widgets). During runtime you can only move existing widgets between tabs as copying widgets is forbidden.

  5. #5
    Join Date
    May 2007
    Posts
    315
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Copying contents of QTab

    Thanks, now everything's right

Similar Threads

  1. Copying contents of QTableView cell to clipboard
    By Conel in forum Qt Programming
    Replies: 2
    Last Post: 18th April 2006, 15:50

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.