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

  • SEARCH
  • Home
  • 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 7753769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:08:09+00:00 2026-06-01T12:08:09+00:00

In my QGraphicsView , I display a map. I need to display a horizontal

  • 0

In my QGraphicsView, I display a map. I need to display a horizontal ruler and a vertical ruler on the top edge and left edge respectfully.

The map needs to scrolled but the above rulers should be displayed at their fixed positions, but change their scale values.

I tried to implement this using drawForeground method. Due to the maps large size I only paint the visible area. So I need to update() every time scrolling is done. But this result sometimes flickers.

I feel it would be best to have separate layer like approach.

What is the best way to approach the problem?

  • 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-06-01T12:08:10+00:00Added an answer on June 1, 2026 at 12:08 pm

    I just changed ViewportUpdateMode of the graphics view to FullViewportUpdate to get away from flicker.

    You can use SmartViewportUpdate for somewhat good results also.

    The downside is, during animations, this takes more process power.

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

Sidebar

Related Questions

I'm trying to write a map editor in Qt, using QGraphicsView and QGraphicsScene for
I have found this: Getting the size of a QGraphicsView But I can't figure
I've written my own implementation of QGraphicsView.drawItems() , to fit the needs of my
In a Qt based application I'm developing I'm using a QGraphicsView to display sensor
I am using QGraphicsView/QGraphicsScene to display an image. The image is always displayed to
I'm working with QGraphicsView/Scene for the first time. This is in PyQt, but except
I have a QGraphicsView inside a Horizontal Layout. The QGraphicsScene contained in the QGraphics
I have tried calling self.setStyleSheet(background: transparent; border: transparent;) on a QGraphicsView, but it still
I'm trying to display a little square of solid color. I've created a QGraphicsView
I want to draw a triangular object in QGraphicsView by using QGraphicsItem . But

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.