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. EditMenu failed after TextFieldStyle is set
Qt 6.11 is out! See what's new in the release blog

EditMenu failed after TextFieldStyle is set

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 337 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.
  • A Offline
    A Offline
    Albus
    wrote on last edited by
    #1

    Hi guys,

    I meet a strange problem. When I assign a TextFieldStyle to TextField (like the qml code below), the EditMenu (Copy/Paste/Select) will not popup in anyways. But, if I do not assign anything to style, the popup EditMenu works again. Anyone has a solution?

    Thank you.

        TextField { 
            id: input;
            anchors.fill: parent
            style: TextFieldStyle {
               background: Rectangle {
                    color: "yellow"
                    selectedTextColor: "#ffcc66"
                }
            }
            width: 200; 
            height: 40;
            font.pixelSize: 25
            maximumLength: 256
            focus: true; 
            selectByMouse: true; 
            clip: true;
        }
    
    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