Results 1 to 3 of 3

Thread: QGraphicsItem to fullscreen

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2009
    Posts
    50
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Windows

    Default QGraphicsItem to fullscreen

    Hi Everybody again:-)

    I have some subclass of QGraphicsItem and such items displayed on the scene.

    Taking in acount all transfom(s) all items has rectangular shape.

    If I do double click on the item, I want item displayed in "full screen mode". Full screen here means that I need to do such view transform that item will fit into viewport() but occupay maximum area( hope you'ce got it :-), simple speaking it's just full screen:-))) ).

    Ofcouse I will use view->centerOn(center_of_item)

    But is there any elegant way to do the view scale ?


    Thank you!

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QGraphicsItem to fullscreen

    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. The following user says thank you to high_flyer for this useful post:

    medved6 (16th June 2010)

  4. #3
    Join Date
    Dec 2009
    Posts
    50
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QGraphicsItem to fullscreen

    Thank you.
    Sounds like exactly what I was looking for.

Similar Threads

  1. QMenu bar in FullScreen
    By ppaluch in forum Newbie
    Replies: 0
    Last Post: 14th August 2009, 15:52
  2. fullscreen opengl
    By k2 in forum Qt Programming
    Replies: 4
    Last Post: 30th April 2009, 18:15
  3. Fullscreen on Gnome is not full
    By patrik08 in forum Qt Programming
    Replies: 0
    Last Post: 8th March 2007, 02:05
  4. mode fullScreen
    By ederbs in forum Qt Programming
    Replies: 4
    Last Post: 20th January 2007, 00:42
  5. Fullscreen
    By dragor in forum Qt Programming
    Replies: 1
    Last Post: 21st February 2006, 21:23

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.