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 draw line advanced

How to draw line advanced

Scheduled Pinned Locked Moved General and Desktop
12 Posts 6 Posters 4.6k Views 1 Watching
  • 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.
  • S Offline
    S Offline
    SamFaye
    wrote on last edited by
    #1

    I want to draw sinusoidal line shape triangle, square shape, triangular shape with rounded top, line consists of several parallel lines which some are thicker than cetain other

    I want to use a property for it. When selects a value from that property, line is transformed
    exempl:

    _ _
    | |__| |

    ////
    @_
    _

    @

    How will I do?

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goblincoding
      wrote on last edited by
      #2

      Hi Sam

      I'm afraid I don't understand your question. Perhaps you could provide us with an image, sketch or diagram to help with the explanation?

      http://www.goblincoding.com

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SamFaye
        wrote on last edited by
        #3

        I want to draw those type of line like below:

        !https://lh3.googleusercontent.com/ntt67xa4m2D8lQHoHVgwPPG-mHC6T07OXF9MZIkbOfG6TlLUuxo_6N6VRPwwPT5TTkzEVC2Jo9aPHbVL_SRKi9QnOX6lvxhQBg0=w1024(Image)!

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #4

          The image is not visible. Maybe some security settings on your google account/web albums.

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SamFaye
            wrote on last edited by
            #5

            Here is the image
            !http://lh6.googleusercontent.com/NdnfRgXxwncgJ0R-W1Vb-rwLX7d85BMSMpG3OLGVSHzmly7ji6MM9SGO_nOok37XMjo2-Udm7bjYX-TKYKyYmO5s0xK7cx2uzgo=w1024(image)!

            1 Reply Last reply
            0
            • G Offline
              G Offline
              giesbert
              wrote on last edited by
              #6

              This one has the same problems, the access is forbidden.
              Pleasre use a different hoster or use a public gallery.

              Nokia Certified Qt Specialist.
              Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SamFaye
                wrote on last edited by
                #7

                Gerolf do you have an URL for public gallery, where I can put my image??

                What I want is:
                to draw a line in big wave and small wave, large niche and small niche.
                I try to use cubicTo but it does not work well. Maybe it's due to my checkpoint(controle points).

                This is my code:
                @QPointF c1, c2,tmp;
                if(p1.y() <= p2.y())
                {
                if(p1.x() <= p2.x())
                {
                int j = p1.y();
                int i=p1.x();
                int step = 30;
                while(i < p2.x())
                {
                c1.setX((i+step)/2+step);
                c1.setY((j+step)/2);
                c2.setX((i+step)/2+step);
                c2.setY((j+step)/2);
                tmp.setX(i+step);
                tmp.setY(j+step);
                aio_path.cubicTo(c1,c2,tmp);
                aio_path.moveTo(tmp);
                j+=step;
                i+=step;
                }
                c1.setX((i+step)/2+step);
                c1.setY((j+step)/2);
                c2.setX((i+step)/2+step);
                c2.setY((j+step)/2);
                tmp.setX(i+step);
                tmp.setY(j+step);
                aio_path.cubicTo(c1,c2,p2);
                }
                else
                {

                    }
                }@
                
                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  andre
                  wrote on last edited by
                  #8

                  Personally, I use the public folder of my dropbox account, but you could also use a service like imagebin or tinypic or flickr to put your image in a public place.

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SamFaye
                    wrote on last edited by
                    #9

                    My image is here. At the bottom
                    "Your text to link here...":http://tripwow.tripadvisor.com/tripwow/builder/?cs=ihnbm&ssid=ta-demo&theme=&affinity=#

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SamFaye
                      wrote on last edited by
                      #10

                      Help please.

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        andre
                        wrote on last edited by
                        #11

                        [quote author="SamFaye" date="1315824070"]Help please.[/quote]
                        Please practice some patience. It is not acceptable to "kick" your topic within 24 hours, some would argue to allow a week before expecting an answer. The fact that the issue may be "urgent":http://catb.org/~esr/faqs/smart-questions.html#urgent for you does not make it urgent for anybody else around here.

                        1 Reply Last reply
                        0
                        • D Offline
                          D Offline
                          DeVeL-2010
                          wrote on last edited by
                          #12

                          I can't find your image.
                          You should try some other place for delivering your image.

                          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