Results 1 to 2 of 2

Thread: how to change the position of the qscrollbar of the QScrollArea ?

  1. #1
    Join Date
    Jul 2007
    Posts
    6
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default how to change the position of the qscrollbar of the QScrollArea ?

    Hi, guys!
    By default, qscrollarea's vertical scrolllbar is on the right edge of the qscrollarea's viewport, and horizontal scrollbar is on the bottom of edge of the qscrollarea. But sometimes, I want to put the vertical scrollbar on the left of the qscrollarea, and the horizontal scrollbar on the top edge of the qscrollarea . I use the qt4.4. QScrollArea has setAlignment(...) and addScrollBarWidget(...), I tried , no use. How to do that? Thanks alot.
    Last edited by jacek; 13th September 2008 at 15:16. Reason: fixed font

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to change the position of the qscrollbar of the QScrollArea ?

    May be you can try setLayoutDirection(Qt::RightToLeft) for the scroll area / widget
    i can think only of this way for now

Similar Threads

  1. how to change the position of menu of QMainWindow
    By yxmaomao in forum Qt Programming
    Replies: 11
    Last Post: 17th September 2016, 16:12
  2. Replies: 7
    Last Post: 17th July 2009, 09:40
  3. Replies: 2
    Last Post: 10th March 2008, 20:16
  4. QGraphicsTextItem: handling cursor position change
    By Angelo Moriconi in forum Qt Programming
    Replies: 2
    Last Post: 30th January 2007, 10:42
  5. Replies: 2
    Last Post: 17th July 2006, 20:09

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.