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. EllipseShape in QML

EllipseShape in QML

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 4 Posters 2.2k 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.
  • C Offline
    C Offline
    ChrisW
    wrote on last edited by ChrisW
    #1

    Hi,

    For some reason, the only properties available are id and fill for EllipseShape. I made sure that I imported QtQuick.Particles 2.0.

    By the way, EllipseShape inherits Shape, so I'm looking for those properties.

    Thanks

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi! Is it only Creator that says something about a missing property or does the code actually give a runtime error? Sometimes Creator complains but the code is actually correct.

      1 Reply Last reply
      1
      • C Offline
        C Offline
        ChrisW
        wrote on last edited by
        #3

        Hi Wieland,

        So sorry about the late reply. I missed this from earlier.

        An image says a thousand words:

        0_1513726866899_Capture1.PNG

        So for simplicity, I just have the EllipseShape. I had imported what the documentation said. I can see the properties tab on the far right, but as you can see, I don't have many options there either. Thanks so much for your help.

        joeQJ 1 Reply Last reply
        0
        • C ChrisW

          Hi Wieland,

          So sorry about the late reply. I missed this from earlier.

          An image says a thousand words:

          0_1513726866899_Capture1.PNG

          So for simplicity, I just have the EllipseShape. I had imported what the documentation said. I can see the properties tab on the far right, but as you can see, I don't have many options there either. Thanks so much for your help.

          joeQJ Offline
          joeQJ Offline
          joeQ
          wrote on last edited by
          #4

          @ChrisW Hi, friend. Welcome.

          I want to know, How to set the QtCreator Design layout like your. How to let the Code Edit Widget like your? What's Qt version you using? Qt5.9?

          Just do it!

          C 1 Reply Last reply
          0
          • joeQJ joeQ

            @ChrisW Hi, friend. Welcome.

            I want to know, How to set the QtCreator Design layout like your. How to let the Code Edit Widget like your? What's Qt version you using? Qt5.9?

            C Offline
            C Offline
            ChrisW
            wrote on last edited by ChrisW
            #5

            @joeQ

            Hi,

            If you are working with widgets, then you can only use the Qt Creator Designer. If you are working with QML, then this designer will automatically show up when you click on the design icon on the far left. Now, to be able to see the changes while you're editing the code, you need to click and drag the right border of the form view to the left for your liking.

            1 Reply Last reply
            1
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by A Former User
              #6

              Hmm, I need to play around with it a bit first to be sure but like you said, it inherits a huge number of properties from Shape, including x and y. I suspect it's a problem with the graphical editor. I'll try to find out more over the course of the day. Maybe you can try it without the graphical editor in the meantime. Cheers!

              Edit: I'm in UTC+1, "over the course of the day" means something like "within the next 16 hours from now on" ;)

              C 1 Reply Last reply
              1
              • ? A Former User

                Hmm, I need to play around with it a bit first to be sure but like you said, it inherits a huge number of properties from Shape, including x and y. I suspect it's a problem with the graphical editor. I'll try to find out more over the course of the day. Maybe you can try it without the graphical editor in the meantime. Cheers!

                Edit: I'm in UTC+1, "over the course of the day" means something like "within the next 16 hours from now on" ;)

                C Offline
                C Offline
                ChrisW
                wrote on last edited by
                #7

                @Wieland

                I'm glad to see you again. Because I didn't know that you posted, I created another post asking people if I did the preliminary stuff correctly. Please feel free to see that post. The problem has to be there if I got the imports and the syntax correct.

                J.HilkJ 1 Reply Last reply
                0
                • C ChrisW

                  @Wieland

                  I'm glad to see you again. Because I didn't know that you posted, I created another post asking people if I did the preliminary stuff correctly. Please feel free to see that post. The problem has to be there if I got the imports and the syntax correct.

                  J.HilkJ Offline
                  J.HilkJ Offline
                  J.Hilk
                  Moderators
                  wrote on last edited by
                  #8

                  @ChrisW
                  I wouldn't give to much into the QML-Designer. In it's current state, its nice, but more of gimmick than an actually reliable tool. Like the Qt-Widget Designer used to be in its early stages.

                  In my current project I have a dozen qml- files that don't give me a valid preview in the Designer but work flawlessly when compiled.

                  Do you actually get errors when you compile your project or is it only the preview that is the problem here?


                  Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                  Q: What's that?
                  A: It's blue light.
                  Q: What does it do?
                  A: It turns blue.

                  C 1 Reply Last reply
                  1
                  • J.HilkJ J.Hilk

                    @ChrisW
                    I wouldn't give to much into the QML-Designer. In it's current state, its nice, but more of gimmick than an actually reliable tool. Like the Qt-Widget Designer used to be in its early stages.

                    In my current project I have a dozen qml- files that don't give me a valid preview in the Designer but work flawlessly when compiled.

                    Do you actually get errors when you compile your project or is it only the preview that is the problem here?

                    C Offline
                    C Offline
                    ChrisW
                    wrote on last edited by
                    #9

                    @J.Hilk

                    Hi there,

                    With EllipseShape, it will not show a window when I release it. If I run the snippet from this page:

                    http://doc.qt.io/qt-5/qml-qtquick-pathcubic.html

                    It will run and not show the cubic curve. If I run this:

                    http://doc.qt.io/qt-5/qml-qtquick-pathcurve.html

                    It will run and reproduce the same image that is shown in the doc. I didn't test all the curve tools, but this is my results with those two. I spoke with a mod and I get to explain this a little bit more with the Qt team later, so that they can look at it.

                    Thanks for your response.

                    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