Results 1 to 3 of 3

Thread: show only a part of the scene

  1. #1
    Join Date
    Jun 2012
    Posts
    12
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default show only a part of the scene

    hello everyone ;
    please help me
    i am working with QGraphicsView framework and i have a scene and a view that (view.setScene(scene));
    when i use this method, view show all of the scene
    but i want to show particular parts of the scene (for example : one: from x ,from y, to width, to height ;two: from x',from y', to width',
    to height' ; and etc...)
    is there any way that i can do like this?
    so thanks;

  2. #2
    Join Date
    Sep 2011
    Posts
    1,245
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: show only a part of the scene

    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  3. #3
    Join Date
    Jun 2012
    Posts
    12
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: show only a part of the scene

    i still don't write this part of the code!
    but i try to explain better
    please see my image that i attach!
    i can move fruits on the all of the scene but i want to write a code that only shows parts of fruits that are in the black box(do you see it ; right of the scene)

    i mean that when i move a fruits; when a part of fruit is out of the black box view doesn't show that part of the food!
    so thanks
    Attached Images Attached Images
    • File Type: jpg 1.jpg (45.0 KB, 5 views)

Similar Threads

  1. show object (scene) in widget in class class mainwindow
    By rimie23 in forum Qt Programming
    Replies: 8
    Last Post: 1st May 2012, 16:15
  2. Replies: 2
    Last Post: 23rd August 2011, 12:23
  3. Creating new scene from a part of an old one
    By maverick_pol in forum Qt Programming
    Replies: 6
    Last Post: 28th November 2007, 18:14
  4. Creating a scene from piece of another scene
    By maverick_pol in forum Qt Programming
    Replies: 3
    Last Post: 23rd August 2007, 17:51
  5. Show/hide part of dialog with resizing.
    By Spockmeat in forum Qt Tools
    Replies: 6
    Last Post: 7th June 2006, 08:22

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.