Results 1 to 1 of 1

Thread: QTabWidget - split tabs and contaniner

  1. #1
    Join Date
    Apr 2011
    Qt products

    Default Re: QTabWidget - split tabs and contaniner


    Let say I have QSplitter which is set as central widget in mainwindow with left and right contents. The QtabWidget TABS are displayed somehow above from left to right mainwindow egdes.

    What I want is to load a content from a tab to the QSplitter right content.

    Is it possible ?

    yes ? any example


    Added after 34 minutes:

    I guess I can use QTabBar but how can I add it between tools and central widget ??

    Added after 16 minutes:

    That how !

    Qt Code:
    1. QWidget *mainWidget = new QWidget;
    2. QVBoxLayout *mainLayout = new QVBoxLayout;
    3. mainLayout->addWidget(_tabWidget);
    4. mainLayout->addWidget(_splitter);
    5. mainWidget->setLayout(mainLayout);
    7. setCentralWidget(mainWidget);
    To copy to clipboard, switch view to plain text mode 
    Last edited by high_flyer; 24th August 2011 at 09:34. Reason: code tags

Similar Threads

  1. QTabWidget with same tabs
    By Djony in forum Qt Programming
    Replies: 20
    Last Post: 24th December 2011, 12:20
  2. Adding tabs in a QTabWidget
    By Hogwarts in forum Qt Programming
    Replies: 3
    Last Post: 8th February 2011, 19:40
  3. Qt Designer How to set a QTabWidget with two rows of tabs?
    By lmfgy123 in forum Qt Tools
    Replies: 1
    Last Post: 17th November 2010, 06:49
  4. split a QTabWidget?
    By shud in forum Qt Programming
    Replies: 1
    Last Post: 15th July 2009, 19:56
  5. Switching off all tabs in QTabWidget
    By Gopala Krishna in forum Qt Programming
    Replies: 7
    Last Post: 30th August 2006, 17:10


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.