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. Qt Quick Getting Started Text Editor Error - Please Delete
Forum Updated to NodeBB v4.3 + New Features

Qt Quick Getting Started Text Editor Error - Please Delete

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 631 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.
  • R Offline
    R Offline
    Rolias
    wrote on last edited by
    #1

    I think this belongs in the bugtracker but I can't seem to delete my own post. Will someone with that ability please delete this. Thank you.

    I'm just working my way through the getting started on QT Quick area, "specifically the text editor tutorial":http://qt-project.org/doc/qt-5/gettingstartedqml.html. Early on it demos code for adding hover coloring
    @ MouseArea{
    onClicked: buttonClick()
    hoverEnabled: true
    onEntered: parent.border.color = onHoverColor
    onExited: parent.border.color = borderColor
    }@

    This appears to be wrong, since the onHoverColor and borderColor properties are created under the parent Rectangle the only way I can get this to work is to change the code to parent.onHoverColor. I can't add a note to the tutorial, but since this is such a basic tutorial it would be nice if someone fixed it.

    The same error applies to the code for the onClicked property it should be
    @onClicked: parent.buttonClick()@

    Check out my third course in the trilogy on Qt
    "Integrating Qt Quick with C++"
    http://bit.ly/qtquickcpp
    published by Pluralsight

    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