Results 1 to 5 of 5

Thread: Having trouble with QGraphicsView

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2009
    Posts
    10
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    6

    Default Re: Having trouble with QGraphicsView

    I have set the cach mode to cachBackground but it still doesn't make any difference.... nothing is showing up....

    Also, the QGraphicsScene does not have a setOpacity() function, that is only implemented by QGraphicsItem.....

    I don't think it is an opacity issue as even the text and line is not showing up....

  2. #2
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    116
    Thanked 42 Times in 41 Posts

    Default Re: Having trouble with QGraphicsView

    if not setOpacity() then alpha value u can set in QColor ()

    ok did u see the padnavigator example ... they set pixmap for the graphicsView ... see where the problem arise ..
    Last edited by wagmare; 11th August 2009 at 12:03.
    "Behind every great fortune lies a crime" - Balzac

  3. #3
    Join Date
    Aug 2009
    Posts
    10
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    6

    Default Re: Having trouble with QGraphicsView

    I really appreciate your help wagmare, but unfortunaltely I am still having problems...

    I have had a look through the padnavigator example but I dont see where I have implemented it any different apart from the fact that they made a subclass of QGraphicsView...


    Also... if I remove the QGraphicsScene element, it still does not show a background.... so its not an opacity problem

Similar Threads

  1. Replies: 0
    Last Post: 5th March 2009, 07:54
  2. QGraphicsView setRenderHints() problem
    By roshlame in forum Qt Programming
    Replies: 0
    Last Post: 3rd December 2008, 19:42
  3. QGraphicsView and embeded widgets
    By bunjee in forum Qt Programming
    Replies: 10
    Last Post: 12th October 2008, 08:43
  4. Problem determining size of QGraphicsView
    By Bocki in forum Qt Programming
    Replies: 3
    Last Post: 17th February 2008, 15:54
  5. Replies: 3
    Last Post: 12th February 2008, 22:17

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.