Results 1 to 5 of 5

Thread: how can I have a fixed overlay layer in a View ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 334 Times in 317 Posts

    Default Re: how can I have a fixed overlay layer in a View ?

    Sorry, I guess I replied in a hurry.
    Well, in that case why dont you make the topFrame as a child of view ? I dont think it is compulsory to make it a graphics item.
    The top frame would need to have transparent background.

    By the way if you dont have any interaction with the topframe, ie. no clicking or key press on it, and simply rendering, better way would be to simply draw in QGraphicsScene::drawForeground or QGraphicsView::drawBackground

    If I come across some other solution I will let you know.
    Last edited by aamer4yu; 18th November 2009 at 06:04.

  2. #2
    Join Date
    Nov 2009
    Posts
    3

    Default Re: how can I have a fixed overlay layer in a View ?

    I kind of get some of your idea, but I would need an example to understand better. The topFrame has nothing to do with clicks or key pressing, but it needs to display some objects like timers, scores, etc.

    For the given code in my first reply, could you please make an example on how would you create the topFrame and incorporate it in the view? thank you

Similar Threads

  1. Graphics View and the Pixmap
    By spawn9997 in forum Qt Programming
    Replies: 2
    Last Post: 26th June 2009, 22:12
  2. Model / View - Design Question
    By antarctic in forum Qt Programming
    Replies: 8
    Last Post: 8th June 2009, 07:39
  3. World View Zooming factor
    By Pharell in forum General Programming
    Replies: 0
    Last Post: 6th November 2008, 13:04
  4. Adding Rectangular overlay on graphics view
    By forrestfsu in forum Qt Programming
    Replies: 10
    Last Post: 21st November 2006, 19:42
  5. Model, View and Proxy
    By No-Nonsense in forum Qt Programming
    Replies: 2
    Last Post: 21st November 2006, 08:50

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.