Results 1 to 12 of 12

Thread: overlapping canvases

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2006
    Posts
    122
    Thanks
    18
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: overlapping canvases

    not rally but i want a rectangle there which will let me pan to other area in large canvas. and also i want to move this small canvas to any position on large canvas as per my convenience.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: overlapping canvases

    So the behaviour is pretty much different when comparing the small to the large view. Maybe you need to take a break in implementation and give yourself a moment to think what kind of functionalities do you actually need from those both views and how could you possibly be able to implement the required functionalities.

    - when the rectangle inside the small view shall be moved (dragging anywhere inside the rect / dragging rect boundaries..)?
    - when the small view itself shall be moved (always when not moving the rectangle?)
    - how do you connect the views so that the large view adjusts it's world to correspond the small view's rectangle
    - and so on...

    Remember that a child widget is on top of it's parent. The child (the small view in your case) receives for example mouse events itself, you cannot catch them (without doing certain tricks) in the parent (the large view in your case).
    J-P Nurmi

Similar Threads

  1. QTableWidget with overlapping cells (span)
    By rhi in forum Qt Programming
    Replies: 2
    Last Post: 13th May 2006, 18:44

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.