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 6770605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:19:56+00:00 2026-05-26T15:19:56+00:00

I try to create something, where you can drop different things on it, like

  • 0

I try to create something, where you can drop different things on it, like the Qt Creator (no, i don’t want to create a new one, but i need the function of that).
You drag some elements and drop them anywhere in a tabPane.
My problem now is how to make a grid/raster in the background.
It should look similar to this:

https://i.stack.imgur.com/QOA4K.png

I mean those dots in the background.
If I make them with two for loops, it will take hours and it’s not efficient or anything else.
There has to be a more efficient solution and a lot easier one.

I’m programming in c++ with Qt as a Framework. Please give me some links or anything else I can use.

  • 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-26T15:19:56+00:00Added an answer on May 26, 2026 at 3:19 pm

    You can:

    • limit the repainting to region that really needs to be updated as explained in QWidget::paintEvent documentation,
    • fill a container of QPoint in your loops instead of drawing the points, and draw them all with QPainter::drawPoints after the loop,
    • cache the result in a QPixmap with transparency and reuse it if the window size didn’t change (example from Qt Quaterly).

    Of course, you should do some testing to see if you gain anything at all by doing any of these optimizations.

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

Sidebar

Related Questions

I try to create something like breadcrumb navigation using MVC3. When user go to
I try to create a new file inside a JSP and try to save
I try to create a thread in QT, can declare, create and start it,
I try to create a form that can save a person's form data so
When I try to create a new RegionInfo with certain ISO 3166 country codes
Whenever I try to create a mysqli object, as in; $mysqli = new mysqli(host,
I'm quite new to node and am trying to create something that gets some
I try to create something similar to the task-menu in iOS4: (Sorry cant post
I will try to explain as best as I can what I realy want
I try to create a very simple app using windows API. I've done some

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.