Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Custiomize signal in textfield
Forum Update on Monday, May 27th 2025

Custiomize signal in textfield

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 2 Posters 625 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.
  • E Offline
    E Offline
    eswar
    wrote on last edited by
    #1

    Hi

    I want to custiomize the textfield signals like editing finsihed and textchanged to acess another qml file.

    eg

    Page1.qml
    item{
    property int tfwidth:50
    property int height:10
    propert string textcolor:"red"

    textfield{

    width:tfwidth
    height:tfheight

    }

    page2.qml

    page1{

    }
    page1{

    }

    Here i obtain textchange and editing finshed from page1 to page 2.

    1 Reply Last reply
    0
    • kd_walaK Offline
      kd_walaK Offline
      kd_wala
      wrote on last edited by
      #2

      You can do this:
      Page1.qml
      item{
      property int tfwidth:50
      property int height:10
      propert string textcolor:"red"
      signal textChanged()

      textfield{

      width:tfwidth
      height:tfheight
      onTextChanged: parent.textChanged()
      }

      page2.qml

      page1{
      onTextChanged: { // handle textchanged }
      }
      page1{
      onTextChanged: { // handle textchanged }
      }

      1 Reply Last reply
      0
      • E Offline
        E Offline
        eswar
        wrote on last edited by
        #3

        @kd_wala

        Thank you for your reply.

        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