Qtruby scale images on window resize with QGraphicsView andQGraphicsScene

Discussion in 'Ruby' started by Kevin, May 2, 2010.

  1. Kevin

    Kevin Guest

    [Note: parts of this message were removed to make it a legal post.]

    I'm trying to get an image to scale nicely on window resize with Qt and all
    I seem to be able to get is the image to load full size.
    The offending code is here: http://pastebin.com/LYF0e6hd

    I'm trying to get an effect similar to this Python example:
    http://www.rkblog.rk.edu.pl/w/p/qgraphicsview-and-qgraphicsscene/?c=1
    Scroll down to the bottom to see the class created there with the resize
    event handler.

    My suspicion is that the resize event isn't getting fired at all in my code.
    Any ideas would be greatly appreciated. Note that I have tried using
    FitInView which does what it says but it seems to make the image blurry.
     
    Kevin, May 2, 2010
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. J'son

    Resize images on demand or once?

    J'son, Mar 26, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    461
    J'son
    Mar 27, 2005
  2. IkBenHet

    Resize images ASP.NET

    IkBenHet, May 30, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    517
    IkBenHet
    May 30, 2005
  3. IkBenHet

    Resize images ASP.NET

    IkBenHet, May 30, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    1,103
    IkBenHet
    May 30, 2005
  4. UJ
    Replies:
    3
    Views:
    1,066
  5. Replies:
    2
    Views:
    1,297
    Adrienne
    Feb 13, 2005
Loading...

Share This Page