Results 1 to 3 of 3

Thread: How to transfer all sub-widgets from one tabbed widget to another dynamically ?

  1. #1
    Join Date
    Jun 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default How to transfer all sub-widgets from one tabbed widget to another dynamically ?

    Hi All,

    I am a beginner of Qt programming, these days I met a question when using the QTabWidget.
    It needs several kinds of widget in one tabbed widget, when the Qt application is running,
    if current widget is changed, I demand all the sub-widget in the prior tabbed widget can be
    dynamically transferred to current tabbed widget. How to implement it?

    I use the setParent() fucntion, but it is useless. Then I try the removeWidget() and
    addWidget(), but it failed too.

    Please give me some help.

  2. #2
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to transfer all sub-widgets from one tabbed widget to another dynamically ?

    another one that likes to cross-post. that's rude, isn't it?

    http://www.qtforum.org/article/38050...tml#post119198
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  3. #3
    Join Date
    Jun 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to transfer all sub-widgets from one tabbed widget to another dynamically ?

    sorry about it. now I focus on one forum.

Similar Threads

  1. How to tell which tabbed dock widget is on active?
    By Stephen Yee in forum Qt Programming
    Replies: 0
    Last Post: 15th September 2011, 17:40
  2. Tabbed Dock Widget
    By bismitapadhy in forum Qt Programming
    Replies: 1
    Last Post: 26th May 2010, 04:38
  3. PyQt: Fix tab order in tabbed widgets of QMainWindow
    By Studentik in forum Qt Programming
    Replies: 0
    Last Post: 25th December 2009, 18:48
  4. Tabbed widget performance suggestions
    By MrGarbage in forum Qt Programming
    Replies: 0
    Last Post: 8th December 2007, 16:02
  5. Replies: 1
    Last Post: 9th March 2007, 21:07

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.