Results 1 to 2 of 2

Thread: Is it possible to duplicate or clone a Qwiget at run mode ?

  1. #1
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Is it possible to duplicate or clone a Qwiget at run mode ?

    Any way ?
    I'd want to create a new Qwidget = clone(existing_widget);
    Thanks

  2. #2
    Join Date
    Feb 2011
    Location
    Bangalore
    Posts
    207
    Thanks
    20
    Thanked 28 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Is it possible to duplicate or clone a Qwiget at run mode ?

    Nope. See Q_DISABLE_COPY . They have declared copy ctor and assignment operator in private section. so no way. specifically for reason that you dont do it. may i know y you want to do it.

Similar Threads

  1. How can clone custom QGraphicsItem
    By Malloc in forum Qt Programming
    Replies: 0
    Last Post: 7th May 2010, 08:08
  2. Gitorious error trying to clone branch
    By steve-o in forum Installation and Deployment
    Replies: 0
    Last Post: 1st January 2010, 21:59
  3. Replies: 1
    Last Post: 2nd November 2009, 12:02
  4. Move window in Clone Mode
    By ultrabrite in forum Qt Programming
    Replies: 1
    Last Post: 14th June 2006, 18:22

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.