Results 1 to 3 of 3

Thread: QTabWidget multiple tab show problem!

  1. #1
    Join Date
    Aug 2008
    Posts
    33
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question QTabWidget multiple tab show problem!

    I am add many tabs on a dialog, however, the tab arrow had overlap with tab text. the fellowing is part of my code.
    Qt Code:
    1. //CTabPageDescInfomation is a subclass of QWidget.
    2. m_pTabWidget = new QTabWidget(this);
    3. m_pTabPage[Tab_Page_Basic] = new CTabPageDescInfomation(Tab_Page_Basic,m_nDlgType,childFrm(),this);
    4. m_pTabWidget->addTab(m_pTabPage[Tab_Page_Basic],g_mapPages[Tab_Page_Basic]);
    5. m_pTabPage[Tab_Page_Botany] = new CTabPageDescInfomation(Tab_Page_Botany,m_nDlgType,childFrm(),this);
    6. m_pTabWidget->addTab(m_pTabPage[Tab_Page_Botany],g_mapPages[Tab_Page_Botany]);
    7. m_pTabPage[Tab_Page_Agronomy] = new CTabPageDescInfomation(Tab_Page_Agronomy,m_nDlgType,childFrm(),this);
    8. m_pTabWidget->addTab(m_pTabPage[Tab_Page_Agronomy],g_mapPages[Tab_Page_Agronomy]);
    9. //......
    10. connect(m_pTabWidget,SIGNAL(currentChanged(int)),this,SLOT(slot_tabSelChanged(int)));
    11. pH->addWidget(m_pTabWidget);
    To copy to clipboard, switch view to plain text mode 
    When run the program , it shows as the picture below, Does somebody encounter a similar problem?
    Attached Images Attached Images

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QTabWidget multiple tab show problem!

    Are you using the latest Qt version?
    J-P Nurmi

  3. #3
    Join Date
    Aug 2008
    Posts
    33
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTabWidget multiple tab show problem!

    Yes, I am using Qt 4.6.0 + vs2008 on window platform.

Similar Threads

  1. QTabWidget problem
    By alan lenton in forum Qt Programming
    Replies: 5
    Last Post: 25th July 2016, 16:16
  2. QTabWidget problem
    By Strongoloid in forum Newbie
    Replies: 2
    Last Post: 10th September 2009, 20:38
  3. How to show Multiple Message using QSystemTrayIcon?
    By ashukla in forum Qt Programming
    Replies: 5
    Last Post: 22nd May 2009, 10:26
  4. Replies: 1
    Last Post: 16th April 2009, 16:12
  5. Corner widget in QTabWidget doesn't show up
    By ePharaoh in forum Qt Programming
    Replies: 2
    Last Post: 6th April 2006, 17:02

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.