Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [Solved] Particular radius
Forum Updated to NodeBB v4.3 + New Features

[Solved] Particular radius

Scheduled Pinned Locked Moved QML and Qt Quick
11 Posts 4 Posters 4.0k 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.
  • G Offline
    G Offline
    giesbert
    wrote on last edited by
    #2

    you need only one rounded edge?
    I think you then have to draw it by hand...

    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
    • Z Offline
      Z Offline
      ZapB
      wrote on last edited by
      #3

      Or split it into 4 rects and set a rounded corner on the lower left one. This will lead to some overdraw though.

      Or use the BorderImage QML element.

      Where are you wanting to do this (ie in a widget a QGraphicsScene or in a QML scene)?

      Nokia Certified Qt Specialist
      Interested in hearing about Qt related work

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DenisKormalev
        wrote on last edited by
        #4

        BorderImage will work ok. Also you can draw border pixmap not only in QML, but in C++ too.

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

          i can not do it. i will use an image! =) thank you!

          1 Reply Last reply
          0
          • Z Offline
            Z Offline
            ZapB
            wrote on last edited by
            #6

            Well, what did you try? What did not work?

            Nokia Certified Qt Specialist
            Interested in hearing about Qt related work

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

              i am making the rectangle with power point...

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

                But how do you want to draw it? In a custom drawn widget? in QML? we need more info...

                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
                  spode
                  wrote on last edited by
                  #9

                  in qml!

                  1 Reply Last reply
                  0
                  • Z Offline
                    Z Offline
                    ZapB
                    wrote on last edited by
                    #10

                    OK, draw it in gimp/inkscape/whatever, export to some suitable format then use BorderImage element in QML.

                    If this was a QML problem it may have been more appropriate to post it in the Qt Quick forum.

                    Nokia Certified Qt Specialist
                    Interested in hearing about Qt related work

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      spode
                      wrote on last edited by
                      #11

                      i know. thank you

                      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