×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Apr 2012
    Posts
    5

    how to set focus for Qlineedit when scroll items in a screen as screen Contacts phone

    Hi all,

    I have a screen(text box use feature search and list items) as screen Contacts phone.
    I miss in case of scroll way items when don't set focus for text box.
    I expect set focus for text box while scrolling way item in screen. I don't work
    Take note:
    text box : use QLineEdit(set focusPolicy = Strong focus)
    items: to have customize from widget for Qt

    Please help mehttp://www.developer.nokia.com/Commu...s/confused.gif
    Thanks

  2. #2
    Registered User
    Join Date
    Sep 2011
    Posts
    449

    Re: how to set focus for Qlineedit when scroll items in a screen as screen Contacts p

    Hi,

    There is a working qml solution here, The same logic can be used for your qt app too

  3. #3
    Registered User
    Join Date
    Apr 2012
    Posts
    5

    Re: how to set focus for Qlineedit when scroll items in a screen as screen Contacts p

    Quote Originally Posted by kusumk View Post
    Hi,

    There is a working qml solution here, The same logic can be used for your qt app too
    Thanks kusumk for your quick answer.
    We are using Qt 4.6 so QML is not available. Do you know any way to implement this function by Qt C++?

  4. #4
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: how to set focus for Qlineedit when scroll items in a screen as screen Contacts p

    long back i wrote a wiki article showing the same http://www.developer.nokia.com/Commu...yle_Search_Bar so you can also have a look at the article.

  5. #5
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: how to set focus for Qlineedit when scroll items in a screen as screen Contacts p

    Quote Originally Posted by ngthientrung View Post
    Thanks kusumk for your quick answer.
    We are using Qt 4.6 so QML is not available. Do you know any way to implement this function by Qt C++?
    what kusumk was trying to say was simply understand how things are done there and than you can replicate the same logic in your Qt C++ based code.

    But the problem you may face is Qt 4.6 AFAIK doesnt have api for creating a Flickable, so you may need to make your own flickable first.

Similar Threads

  1. CEikRichTextEditor doesn't scroll in touch screen
    By ashraf fawzy in forum Symbian User Interface
    Replies: 5
    Last Post: 2011-12-26, 10:06
  2. Debugging On Phone, Show Phone Screen in Computer Screen?
    By hariyanto_toto in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2011-01-18, 12:18
  3. From mobile phone screen to projector screen
    By geerishxxx in forum Streaming and Video
    Replies: 7
    Last Post: 2007-08-17, 15:59
  4. how to scroll horizontally ....the full screen
    By priya83 in forum Symbian User Interface
    Replies: 0
    Last Post: 2006-10-07, 07:42
  5. get focus again without blur on screen
    By moluk in forum Symbian
    Replies: 3
    Last Post: 2002-10-12, 15:51

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×