Results 1 to 2 of 2

Thread: QGraphicsScene/View some QGraphicsItems stationary when scrolling

  1. #1
    Join Date
    Mar 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QGraphicsScene/View some QGraphicsItems stationary when scrolling

    Hi,

    I am writing scope software and I have need to keep certain things stationary when the scope screen is scrolled horizontally. What is the easy way?
    The stuff I need to have stationary are not only Widgets - there is also QGraphicsItems.
    I have tried most part of today to get small program to work but I really don't understand this stuff so therefore I don't post example program. But would highly appreciate if someone of you could give a little example how to do it.

    Would the layers concept of QGraphicsScene be one possible solution?

    I am a beginner have been doing QT now 2,5 months.

    Best Regards
    Kari Laine

  2. #2
    Join Date
    Mar 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QGraphicsScene/View some QGraphicsItems stationary when scrolling

    Hi,

    not seeing much comments... maybe my question is stupid or so obvious I should be able to solve it myself - but I can't.

    Now I know how to make QWidgets stationary. Just make them parented to view.
    But I can't make QGraphicsItems stationary. I attach a simple program in which I draw an circle.
    So if someone could give me either comments or modify it to keep circle from moving when scene is scrolled.

    Best Regards
    Kari
    Attached Files Attached Files

Similar Threads

  1. Replies: 5
    Last Post: 21st January 2010, 15:55
  2. items in view would disappear on scrolling
    By sepehr in forum Qt Programming
    Replies: 4
    Last Post: 21st March 2009, 07:20
  3. Scrolling problem with background using View/Scene
    By nileshsince1980 in forum Qt Programming
    Replies: 5
    Last Post: 22nd October 2007, 08:19
  4. How did I disable auto-scrolling function in tree-view
    By alfa_wu in forum Qt Programming
    Replies: 1
    Last Post: 28th September 2007, 08:31
  5. Replies: 4
    Last Post: 25th April 2007, 16:54

Tags for this Thread

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.