Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to generate a grid?
Forum Update on Monday, May 27th 2025

How to generate a grid?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 487 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    VBsFAN
    wrote on last edited by VBsFAN
    #1

    Hi there,

    How would you generate a dot or line grid?
    You might have seen MS Paint or other graphics program which allows to to use grid. I was wondering how to generate such grid. Thanks

    Something like this link:
    https://halfapx.com/wp-content/uploads/2017/08/dotgrid_dark-1500x1500.jpg

    jsulmJ 1 Reply Last reply
    0
    • V VBsFAN

      Hi there,

      How would you generate a dot or line grid?
      You might have seen MS Paint or other graphics program which allows to to use grid. I was wondering how to generate such grid. Thanks

      Something like this link:
      https://halfapx.com/wp-content/uploads/2017/08/dotgrid_dark-1500x1500.jpg

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @VBsFAN Well, draw the grid. Either create a picture containing this grid and draw the picture on the widget (you didn't actually say where you want to have this grid). Or override paintEvent and draw the grid manually.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved