Results 1 to 2 of 2

Thread: QTabBar with each Tab has exactly the same set of objects.

  1. #1
    Join Date
    Jan 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    Symbian S60

    Default QTabBar with each Tab has exactly the same set of objects.

    Hi! I'm a beginner in QT and I am currently creating a Symbian application. I am through with the designing and some minor coding. My problem now is, I don't know how to Copy the same objects from my first tab to the other. The event is like this, when I clicked the "pBnewTab", the QTabWidget is supposed to create a new tab that has the same object as the first one. what i mean is, I want the same objects on all the tabs that will be generated.

    I think I did it once, but the problem was the objects was not copied but moved. when i checked the previous tab, it no longer have any content in it. Can someone help me? At the very least please give me a hint. I'm just new in object-oriented programming and QT is the first ever Software Development Tool that i used.
    Last edited by michaelxxviii; 15th January 2012 at 11:04. Reason: spelling corrections

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

    Default Re: QTabBar with each Tab has exactly the same set of objects.

    Create a class that contains the contents of a single tab and then create a separate instance of this class for each tab.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 0
    Last Post: 17th November 2011, 11:51
  2. Replies: 3
    Last Post: 9th January 2010, 15:47
  3. QTabBar??
    By anupamgee in forum Qt Programming
    Replies: 12
    Last Post: 30th April 2009, 18:13
  4. problems about QTabBar
    By qtopiahooo in forum Qt Programming
    Replies: 4
    Last Post: 10th October 2006, 10:05
  5. Replies: 7
    Last Post: 18th July 2006, 21:33

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
  •  
Qt is a trademark of The Qt Company.