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. Set comments in the ending scope
Forum Updated to NodeBB v4.3 + New Features

Set comments in the ending scope

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 3 Posters 711 Views 2 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
    Charlie_Hdz
    wrote on last edited by
    #1

    Hiya,

    In large QML projects, it's quite annoying to create comments in the ending scope of each item. For example:

                GreenSquare{
                    BlueSquare{
                        width:12
                        anchors.fill: parent
                        anchors.margins: 8
                        text: '(1)'
                    }//BlueSquare
                }//GreenSquare
    

    In Qt/C++ I can deal with refactoring or maintain my code simple... But QML I think it might be useful to have an automatic tool to fill this comments.

    I'm open for best practices in declarative languages... It's just a weird feeling.

    Kind Regards,
    Enrique Hernandez
    gearstech.com.mx
    chernandez@gearstech.com.mx

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      I remember there being a feature request for exactly this in Qt Creator some time ago. Not sure if it has gone anywhere yet, but QtC devs seemed interested in it.

      (Z(:^

      aha_1980A 1 Reply Last reply
      0
      • sierdzioS sierdzio

        I remember there being a feature request for exactly this in Qt Creator some time ago. Not sure if it has gone anywhere yet, but QtC devs seemed interested in it.

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @sierdzio @Charlie_Hdz: That is https://bugreports.qt.io/browse/QTCREATORBUG-17516

        Qt has to stay free or it will die.

        1 Reply Last reply
        4

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved