Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6058037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:33:16+00:00 2026-05-23T08:33:16+00:00

In a Qt based application I’m developing I’m using a QGraphicsView to display sensor

  • 0

In a Qt based application I’m developing I’m using a QGraphicsView to display sensor data in a 2D grid. On the side I’d like to show a legend/palette to relate the colours in the grid to values.

The user can zoom and pan the sensor data view, but understandably the palette should be stationary in the view. So placing the palette/legend in the sensor view scene requires some additional care: Applying the inverse user transformation.

However I’d rather have the palette/legend be implemented as kind of an (noninteractive) overlay layer with it’s very own transformation. Is that somehow possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T08:33:16+00:00Added an answer on May 23, 2026 at 8:33 am

    I think you should implement your legend/palette overlay out of the QGraphics context, if you move (setPosition…) of this item to invert the user transformation you item will be re-indexed in the graphic tree any time you pan/zoom …

    Doing an overlay widget is definitely doable, but in this case since it’s part of you graphic context I would recommend to implement your own QGraphicsView (wicth is a widget) re-implement the paintEvent to paint you palette/legend in default widget space (no transformation). Plus if your palette/legend is static you can render it once in a pixmap and simply repaint this buffer pixmap anytime the QGraphicsView needs an update (of course re-sizing will require the buffer to be updated …).

    If you do so no worry about the non-interacting part, you don’t even have to forward events.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

An existing document based application that saves and loads it's data using NSKeyedArchiver /
I have a navigation based application using Core Data and several levels of drill-down
Using VB.NET Windows Based Application In my software I am using a login page,
I have a readline-based application with a prompt, however I'd like it to not
I have a view based application and in that I want to show driving
I maintain a ruby based application using the ruby-aws gem which interfaces with Mechanical
I am developing web based application in Java [GWT] I am facing problem with
In my Windows based application(C#) i want to import excel sheet to show its
In my Windows based application(C#) i want to import excel sheet to show its
In a MVVM based application, what options do I have to provide ViewModel data

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.