Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User lipos123's Avatar
    Join Date
    Jan 2011
    Posts
    192
    Hi,

    I have a problem concerning resizing the tabwidget to the width of the phone,
    i have used the below stylesheet for the tabwidget but it didn't worked.
    Code:
    QTabWidget::pane { 
    position: absolute; 
    top: -0.5em; 
    }  
    QTabWidget::tab-bar {
    alignment: center;
    }
    So what i want is to fill the width of the screen by the tabs.

    Any help concerning this issue?
    Best Regards.

  2. #2
    Nokia Developer Champion rahulvala's Avatar
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,293
    Styling the Tab Widget check this blog : http://labs.qt.nokia.com/2007/06/22/...he-tab-widget/

    regards,
    rahul

  3. #3
    Registered User lipos123's Avatar
    Join Date
    Jan 2011
    Posts
    192
    Quote Originally Posted by rahulvala View Post
    Styling the Tab Widget check this blog : http://labs.qt.nokia.com/2007/06/22/...he-tab-widget/

    regards,
    rahul
    thanks rahulvala,
    but i've checked this link, but it's not using the native form of the tabwidget on mobile.
    i need the native form of the tabwidget and the size of the tab to fill the screen width (if there size is less than the screen width)

    Best Regards.

  4. #4
    Nokia Developer Champion rahulvala's Avatar
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,293
    Quote Originally Posted by lipos123 View Post
    thanks rahulvala,
    but i've checked this link, but it's not using the native form of the tabwidget on mobile.
    i need the native form of the tabwidget and the size of the tab to fill the screen width (if there size is less than the screen width)

    Best Regards.
    Checked this using stylesheet you can achieve that : http://stackoverflow.com/questions/2...ing-qtabwidget

    regards,
    rahul

  5. #5
    Registered User lipos123's Avatar
    Join Date
    Jan 2011
    Posts
    192
    Quote Originally Posted by rahulvala View Post
    Checked this using stylesheet you can achieve that : http://stackoverflow.com/questions/2...ing-qtabwidget

    regards,
    rahul
    thanks for the website,
    i will check it and get back if i face any problem.

    Best Regards.

Similar Threads

  1. swipe gesture for tabwidget
    By sindhuks in forum [Archived] Beginning Qt
    Replies: 1
    Last Post: 2011-02-05, 10:04
  2. Bug or error with TabWidget
    By cyphorious in forum Qt
    Replies: 4
    Last Post: 2010-07-29, 10:28

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved