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. QLine and QML properties
Forum Update on Monday, May 27th 2025

QLine and QML properties

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 1.5k 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.
  • P Offline
    P Offline
    pokey
    wrote on last edited by
    #1

    Why QLine isn't available as a QML built-in line type? There's QPoint/point, QSize/size and QRect/rect. I have noticed that Qt framework itself uses these types moderately, so are we encouraged to use them? It's kinda important as it affects how APIs are glued together and what can be binded with what.

    raven-worxR 1 Reply Last reply
    0
    • P pokey

      Why QLine isn't available as a QML built-in line type? There's QPoint/point, QSize/size and QRect/rect. I have noticed that Qt framework itself uses these types moderately, so are we encouraged to use them? It's kinda important as it affects how APIs are glued together and what can be binded with what.

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @pokey
      yes, they are perfectly fine basic types in an QML environment.
      Also they are automatically converted.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pokey
        wrote on last edited by
        #3

        Do you know the reason why QLine/QLineF isn't available as QML type? If we are able to represent concept such as rect with basic type, then it would be IMO logical to have line as well.

        raven-worxR 1 Reply Last reply
        0
        • P pokey

          Do you know the reason why QLine/QLineF isn't available as QML type? If we are able to represent concept such as rect with basic type, then it would be IMO logical to have line as well.

          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          @pokey said in QLine and QML properties:

          Do you know the reason why QLine/QLineF isn't available as QML type?

          Maybe it wasn't worth it just to bundle 2 points, i don't know.

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          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