Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User Miksa__'s Avatar
    Join Date
    May 2010
    Posts
    5
    Hi,

    I'm trying to use qtmobility and webkit.
    First, I want the access point to be selected by using code:

    QNetworkConfigurationManager manager;

    const bool selectIap = (manager.capabilities()& QNetworkConfigurationManager::CanStartAndStopInterfaces);
    QNetworkConfiguration defaultIap = manager.defaultConfiguration();

    if(!defaultIap.isValid() && (!selectIap && defaultIap.state() != QNetworkConfiguration::Active))
    {

    // handle if there are no access points available.
    }

    session = new QNetworkSession(defaultIap, this);
    session->open();

    After this I connect opened() signal to my own slot, which handles webkit related tasks.
    Have I missed something because this doesn't work? I have tested this with N95 8 gigabytes, (S60 3rd edition FP1).


    Thanks!


    -Miksa

  2. #2
    Registered User Miksa__'s Avatar
    Join Date
    May 2010
    Posts
    5
    Just an update.
    I modified the code so that I left out using opened() signal.
    So after open() function I directly called function, which opens the webkit
    related tasks. It seems to work.

    The only problem is that in case of some webpages, it asks the default access point
    2-3 times for some reason. Without the default access point, it would ask about 20
    times so the default access point stuff works. But sometimes it seems to forget the
    default access point.

Similar Threads

  1. Suggestion for Development technology
    By Darwood in forum General Development Questions
    Replies: 5
    Last Post: 2010-01-08, 19:37

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved