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. generating a single dot?

generating a single dot?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 1.2k 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
    #1

    How do you generate a dot? I could not find a function that would do that. by dot I mean, a dot like this .

    Thanks

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      What do you mean by "generate"? Where do you want to get the dot? On a label, in some text input field, in QString?

      (Z(:^

      V 1 Reply Last reply
      1
      • sierdzioS sierdzio

        What do you mean by "generate"? Where do you want to get the dot? On a label, in some text input field, in QString?

        V Offline
        V Offline
        VBsFAN
        wrote on last edited by
        #3

        @sierdzio
        I want to create or draw dot like that of grids on some graphics software. Basically, I want to create a grid (not of lines but dots) to help with drawing. If I get to draw or create a single dot. then I could generate a grid. Thanks

        A 1 Reply Last reply
        0
        • V VBsFAN

          @sierdzio
          I want to create or draw dot like that of grids on some graphics software. Basically, I want to create a grid (not of lines but dots) to help with drawing. If I get to draw or create a single dot. then I could generate a grid. Thanks

          A Offline
          A Offline
          ambershark
          wrote on last edited by
          #4

          @VBsFAN This should help..

          http://doc.qt.io/qt-5/qpen.html

          Basically you just paint the pixel (size of your choosing) on the widget you want it painted on.

          My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

          V 1 Reply Last reply
          4
          • A ambershark

            @VBsFAN This should help..

            http://doc.qt.io/qt-5/qpen.html

            Basically you just paint the pixel (size of your choosing) on the widget you want it painted on.

            V Offline
            V Offline
            VBsFAN
            wrote on last edited by
            #5

            @ambershark
            Thanks. I am sure it will be helpful. The link has a lot of stuff. Thanks

            1 Reply Last reply
            0

            • Login

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