Results 1 to 20 of 21

Thread: Reimplement of resizeEvent

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #18
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 541 Times in 521 Posts

    Default Re: Reimplement of resizeEvent

    and this one is the final goal
    Yes, you can do this with QGraphicsView.

    The main drawbacks of the method you're currently using are:
    - If the document gets bigger you will have to add a QScrollArea manually;
    - You have to manage image positions manually at resize and scroll.
    - Zooming would be very hard to implement

    QGraphicsView offers all of the above by default, with simple to use API, so you should think about using it.
    You could event interact with those components in your document( move them around, change connections, etc ).

    Regards

  2. The following user says thank you to marcel for this useful post:

    Shawn (27th May 2007)

Similar Threads

  1. resizeEvent help pls
    By munna in forum Newbie
    Replies: 10
    Last Post: 9th July 2010, 08:38
  2. resizeEvent from parent to child?
    By ChasW in forum Qt Programming
    Replies: 3
    Last Post: 11th February 2007, 18:21
  3. Replies: 3
    Last Post: 27th November 2006, 09:56
  4. Reimplement QSplashScreen::drawContents
    By ucomesdag in forum Qt Programming
    Replies: 12
    Last Post: 24th November 2006, 09:39
  5. Question about resizeEvent
    By SkripT in forum Qt Programming
    Replies: 1
    Last Post: 28th February 2006, 16:13

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.