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 Textfield & Virtual Keyboard & PageStack on Meego Harmattan

QML Textfield & Virtual Keyboard & PageStack on Meego Harmattan

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

    Hello I'm currently designing my app. I encountered a problem with TextField Element.
    In the main page i have a TextField which is used to come to another page for the actual input (need space for completion suggestions)
    @ TextField
    {
    id : origin
    onActiveFocusChanged: {
    if(focus){
    var page = Qt.createComponent("SearchPage.qml")
    if(page.status == Component.Ready)
    pageStack.push(page,{title:qsTr("Origin"),already: origin.text});
    }
    }
    }@

    The SearchPage roughly looks like this:
    @Page{
    id: searchPage

    property alias title: searchTitleBar.text
    property alias already: searchField.text
    
    tools: searchTools
    
    TitleBar{
        id: searchTitleBar
    }
    
        TextField{
            id: searchField
            anchors.top: searchTitleBar.bottom
            anchors.margins: 10
            focus: true
        }
    
    
    ToolBarLayout{
        id: searchTools
        ToolIcon { iconId: "icon-m-toolbar-back"; onClicked: pageStack.pop(); }
    }
    

    }@

    if I come to the SearchPage the VirtualKeyboard opens for a very short moment then disappears.
    On the other hand i could leave away the focus:true but then i can't properly pop() the page. (means it scrambles up the mainpage)

    Can anyone give me a hint what to do to fix this issue?

    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