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. An easingcurves example
Forum Updated to NodeBB v4.3 + New Features

An easingcurves example

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 4 Posters 1.1k 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.
  • tomyT Offline
    tomyT Offline
    tomy
    wrote on last edited by
    #1

    Hi,

    Please deem this example. How to have it run please?
    I think we should create two other components (qml files) named Box and EasingType. Right? Some guidance please.

    The next question, I though all "properties" are in lower case letters, but here we have Layout.fillWidth: true!

    Thanks for the help.

    E 1 Reply Last reply
    0
    • tomyT tomy

      Hi,

      Please deem this example. How to have it run please?
      I think we should create two other components (qml files) named Box and EasingType. Right? Some guidance please.

      The next question, I though all "properties" are in lower case letters, but here we have Layout.fillWidth: true!

      Thanks for the help.

      E Offline
      E Offline
      Eeli K
      wrote on last edited by
      #2

      @tomy
      Layout.fillWidth is an attached property. The layout items (ColumnLayout etc.) attach certain properties to their inner items. They don't belong to the inner item as do normal properties. See "Layout" and "QML Object Attributes" in the Qt docs. The book is (again) confusing - it has the chapter 4.6 "Layout items" which doesn't talk about layout items (ColumnLayout etc. which are Items) but about anchors. It doesn't introduce layout items at all even though it seems to use them in the code. If you want to create resizable user interfaces you should use anchors and layouts, not absolute x,y positioning.

      tomyT 1 Reply Last reply
      2
      • E Eeli K

        @tomy
        Layout.fillWidth is an attached property. The layout items (ColumnLayout etc.) attach certain properties to their inner items. They don't belong to the inner item as do normal properties. See "Layout" and "QML Object Attributes" in the Qt docs. The book is (again) confusing - it has the chapter 4.6 "Layout items" which doesn't talk about layout items (ColumnLayout etc. which are Items) but about anchors. It doesn't introduce layout items at all even though it seems to use them in the code. If you want to create resizable user interfaces you should use anchors and layouts, not absolute x,y positioning.

        tomyT Offline
        tomyT Offline
        tomy
        wrote on last edited by
        #3

        @Eeli-K

        use them in the code. If you want to create resizable user interfaces you should use anchors and layouts, not absolute x,y positioning.

        I didn't understand what you meant by resizable user interfaces but anyway, here I have curves and want to make that program run. My guess on making it done was what I mentioned in the first post.

        About the book, QML is a must for me and since this online book is the only semi-complete reference teaching the stuff using a so-called step-by-step method, I think I have to tolerate that. But I'm also reading a book on Q5 which has the matters related to QML in itself as well, fortunately.

        Now what do you have on this program for me please?

        1 Reply Last reply
        0
        • GrecKoG Offline
          GrecKoG Offline
          GrecKo
          Qt Champions 2018
          wrote on last edited by
          #4

          The source code for this chapter can be found in the assets folder.

          --> Chapter 05 examples (ch05-assets.tgz)

          1 Reply Last reply
          2
          • tomyT Offline
            tomyT Offline
            tomy
            wrote on last edited by
            #5

            @GrecKo
            Thanks.

            1 Reply Last reply
            0
            • H Offline
              H Offline
              hello_JiNan
              wrote on last edited by
              #6

              I want to Box and EasingType.qml,too.....if you have had an answer ,please replay me !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