Results 1 to 4 of 4

Thread: scrolling graphicsWidget using mouse

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Thanks
    116
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default scrolling graphicsWidget using mouse

    hi friends,expert,

    im adding QGraphicsLayoutItem in a QGraphicsWidget in run time using QGraphicsLinearLayout.

    i have to add more items to the layout that exceeds the height of the viewport height and items shown outside the viewport area.so is it possible to pan or scroll in QGraphicsWidget like QGraphicsView. QGraphicsView i can pan using centerOn and showing only a visible rect.
    the normal view
    Screen1.jpg

    and and when more item added
    Screen2.jpg

    i have done panning in qgraphicsview using centerOn and visibleViewport but how i can do for the QGraphicsWidget and show only a certain part of the QGraphicsWidget having layout items added in vertical layout .

    how to show only a visible region or rect of QGraphicsItem

    please help me

    thanks in advance .
    Last edited by wagmare; 18th December 2014 at 09:26.
    "Behind every great fortune lies a crime" - Balzac

Similar Threads

  1. Replies: 0
    Last Post: 4th January 2013, 04:59
  2. Scrolling on Mouse Wheel
    By penny in forum Qt Programming
    Replies: 4
    Last Post: 7th April 2011, 07:30
  3. Replies: 1
    Last Post: 3rd November 2010, 12:06
  4. Replies: 3
    Last Post: 9th March 2010, 09:37
  5. Prob: Adding SpinBox to the GraphicsWidget
    By ashishsaryar in forum Qt Programming
    Replies: 1
    Last Post: 20th May 2008, 09:00

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.