×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Apr 2011
    Posts
    25

    QPushbuttons won't get focus within a QScrollArea

    Hi.
    I'm developing an application for Symbian S60 3rd edition using the nokia sdk, and are currently using the Nokia E66 as my development device.
    Since this device do not have any form for touch, i need to use the navigationkeys to navigate.

    You can see the layout on the picture:


    As you can see, the QScrollArea contains QFrames with an image, text and a button.
    By using the simulator i can easily get focus on the buttons (While moving down with the keys) to each button (using the keyboard navigation keys), but if i try the same on the Nokia E66, i only get focus on the QScrollArea.

    QScrollArea: "scrollAreaHouseCatalog"
    Layout for QScrollArea: "scrollAreaHouseCatalogLayout"

    Some of the code for the frame insertion:


    Code:
    QFrame       *houseContainer = new QFrame(ui->scrollAreaHouseCatalog);
    
       ***** adding image, text, and button to the frame......... *****
    
       ui->scrollAreaHouseCatalog->addWidget(houseContainer );
    This runs in a loop, so that many "House frames" is created and inserted into the QScrollArea.

    Can anyone help me?
    Again... the problem is that i cannot reach the buttons on the QFrame, using only navigation keys from my cellphone.

    Thanks in advance!

  2. #2
    Registered User
    Join Date
    Apr 2011
    Posts
    25

    Re: QPushbuttons won't get focus within a QScrollArea

    No one got a clue? I've googled this problem, and it seems like there are more people who has this problem.... bug maybe?

  3. #3
    Registered User
    Join Date
    Apr 2011
    Posts
    25

    Re: QPushbuttons won't get focus within a QScrollArea

    Solved by setting the navigation mode:

    QApplication::setNavigationMode(Qt::NavigationModeKeypadTabOrder);

Similar Threads

  1. Replies: 2
    Last Post: 2011-01-17, 22:06
  2. menu popup list focus get
    By dinesh3112 in forum Symbian User Interface
    Replies: 1
    Last Post: 2006-01-27, 15:57
  3. Get focus to an application
    By dilanr in forum Symbian
    Replies: 1
    Last Post: 2002-12-05, 11:35

Posting Permissions

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