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. QML Material Implementation
Forum Updated to NodeBB v4.3 + New Features

QML Material Implementation

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

    Hi,

    in the Textfield.qml for Material we can see

    FloatingPlaceholderText {
            id: placeholder
            width: control.width - (control.leftPadding + control.rightPadding)
            text: control.placeholderText
            font: control.font
            color: control.placeholderTextColor
            elide: Text.ElideRight
            renderType: control.renderType
    
            filled: control.Material.containerStyle === Material.Filled
            verticalPadding: control.Material.textFieldVerticalPadding
            controlHasActiveFocus: control.activeFocus
            controlHasText: control.length > 0
            controlImplicitBackgroundHeight: control.implicitBackgroundHeight
            controlHeight: control.height
            leftPadding: control.leftPadding
            floatingLeftPadding: control.Material.textFieldHorizontalPadding
        }
    
    

    Where is this FloatingPlaceholderText defined? I can not find any .qml file or any c++ implementation of that.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Redman
      wrote last edited by
      #2

      qquickmaterialplaceholdertext_p.h

      1 Reply Last reply
      0
      • R Redman has marked this topic as solved

      • Login

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