Results 1 to 4 of 4

Thread: Scroll Buttons in page Area for QTAbwidget

  1. #1
    Join Date
    Mar 2009
    Location
    delhi India
    Posts
    56
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Scroll Buttons in page Area for QTAbwidget

    Hi,
    I am using a QTabwidget and when i add multiple tabs QT by default provides Scroll Buttons to navigate those Tabs when all of them are not visible .

    Now each tab has page Area ,when i resize my tab-widget my page area also gets re sized and my contents within the page area are not completely visible so i want the Scroll buttons to navigate my page area within that tab .

    QT doesn't provide scroll buttons for page area like it provides for the Tabs in Qtabwidgets .?

    Please find the attachment for the same.

    Any help would be appreciated .

    Thanks.
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Scroll Buttons in page Area for QTAbwidget

    QT doesn't provide scroll buttons for page area like it provides for the Tabs in Qtabwidgets .?
    Is your Tab resized vertically or does is go beyond the visible edge below normally?
    If its the later (which I presume) then no scrollbars will be added, since the widget is not "squashed" vertically.
    Put the QTabWidget in a layout.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Mar 2009
    Location
    delhi India
    Posts
    56
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: Scroll Buttons in page Area for QTAbwidget

    I dont want the scrollBars but scrollButtons like the one showed in the attachment .
    My TABwidget is shrunk-ed horizontally so i am not able to see complete page area within that activated tab.
    If i can get the srollButtons for page area i could navigate to see the remaining part of it .

  4. #4
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Scroll Buttons in page Area for QTAbwidget

    These scroll buttons are a feature of the TabBar not the pages.
    Scroll buttons for a page in the same manner as they are for the TabBar makes little sense to me, and probably in general too (which is why they are not implemented like that).
    The buttons are in a fact a scroll bar with zero length between the buttons.
    It makes sens on the bar, since the bar can be "moved" horizontally, without effecting the position of the QTabWidget.
    This is not the case with the pages, as each page is as wide as the whole QTabWidget.
    It looks to me your UI design is wrong.
    At any rate, if you want such functionality as you are talking about, you will have to implement it your self.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. How to decorate QTabWidget scroll buttons?
    By terrrible in forum Newbie
    Replies: 2
    Last Post: 7th June 2012, 10:58
  2. Q Scroll Area that scrolls??
    By hakermania in forum Newbie
    Replies: 6
    Last Post: 24th August 2010, 20:48
  3. Scroll Area problem
    By Lodhart in forum Qt Programming
    Replies: 0
    Last Post: 10th October 2009, 14:03
  4. scroll area like QGraphicsItem
    By Gopala Krishna in forum Qt Programming
    Replies: 1
    Last Post: 7th February 2008, 12:28
  5. QTabWidget remove a page at the page's request
    By thomaspu in forum Qt Programming
    Replies: 2
    Last Post: 29th December 2007, 21:45

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.