Results 1 to 9 of 9

Thread: How to find the presence of scroll bars at run time

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2007
    Posts
    28
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to find the presence of scroll bars at run time

    thanks marcel for the code..
    just one thing the line if( tabRect.topLeft.x() >= barTopRight.x(i) ), is giving me the "true" status in both the cases.
    In my case the TabWidget is given a resize event during the initialisation of the screen , but the above code always gives the default size, so I have modified the code to the code given below:
    if(tabRect.topLeft().x() >= QApplication::desktop()->width() )
    The tabbar is resized to desktop's width in the starting.

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to find the presence of scroll bars at run time

    Quote Originally Posted by anju123 View Post
    thanks marcel for the code..
    just one thing the line if( tabRect.topLeft.x() >= barTopRight.x(i) ), is giving me the "true" status in both the cases.
    In my case the TabWidget is given a resize event during the initialisation of the screen , but the above code always gives the default size, so I have modified the code to the code given below:
    if(tabRect.topLeft().x() >= QApplication::desktop()->width() )
    The tabbar is resized to desktop's width in the starting.
    Well, OK then. I didn't know in exactly what moment you needed it.
    I thought you wanted to know if scrollbars are present somewhere during runtime, after initialization.

    Regards

Similar Threads

  1. QScrollArea's Scroll Bars
    By ToddAtWSU in forum Qt Programming
    Replies: 5
    Last Post: 19th September 2006, 13:27

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.