×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jan 2011
    Posts
    7

    Exclamation splash screen problem

    Hi All,

    I have created an application with a splash screen as it should be. The problem is that whenever I tap on the splash screen on my device (tested on N8 and E7), the application disappears and the background i.e. the phone menu is displayed. The application still runs in the background.
    This application makes use of the internet and so it does its initial network lookup while the splash screen is on.

    This issue does not occur with other applications which does not deal with initial network lookup.


    The code for splash screen is as follows:

    QPixmap splashPix(":/Images/splash_new.png");

    QSplashScreen *splash = new QSplashScreen;

    splash->setPixmap(splashPix);
    splash->showFullScreen();

    splash->raise();

    Qt::Alignment topRight = Qt::AlignRight | Qt::AlignTop;
    splash->showMessage(QObject::tr("Checking connectivity"),
    Qt::AlignJustify, Qt::white);
    Utils::sleep(1);
    splash->showMessage(QObject::tr("Checking connectivity."),
    Qt::AlignJustify, Qt::white);
    Utils::sleep(1);
    splash->showMessage(QObject::tr("Checking connectivity.."),
    Qt::AlignJustify, Qt::white);

    Utils::sleep(1);
    splash->showMessage(QObject::tr("Checking connectivity..."),
    Qt::AlignJustify, Qt::white);
    splash->clearMessage();

    net = isConnectedToNetwork(); // connection status call

    if(net)
    {
    //Found an interface. Show status & proceed normally.
    splash->showMessage(QObject::tr("Connection Found !!"),
    Qt::AlignJustify, Qt::green);
    qWarning("Connection found....");
    Utils::sleep(2);
    splash->showMessage(QObject::tr("Launching application"),
    Qt::AlignJustify, Qt::green);
    Utils::sleep(1);
    splash->showMessage(QObject::tr("Launching application."),
    Qt::AlignJustify, Qt::green);
    Utils::sleep(1);
    splash->showMessage(QObject::tr("Launching application.."),
    Qt::AlignJustify, Qt::green);
    Utils::sleep(1);
    splash->showMessage(QObject::tr("Launching application..."),
    Qt::AlignJustify, Qt::green);
    Utils::sleep(1);
    }
    else
    {
    qWarning("Comes here");
    splash->showMessage(QObject::tr("No Internet Connection !!\nPlease check the network settings.\nTrackIt will now exit..."),
    Qt::AlignJustify, Qt::red);
    Utils::sleep(5);

    return -1;
    }

    Utils::sleep(5);

    splash->clearMessage();
    splash->finish(w);

    w->showFullScreen();
    delete splash;
    splash = NULL;

    Can anyone please help me with this issue?

    Thanks and Regards.

  2. #2
    Nokia Developer Expert
    Join Date
    Feb 2008
    Posts
    183

    Re: splash screen problem

    From the QSplashScreen documentation: "The user can hide the splash screen by clicking on it with the mouse."

    If you do not wish to hide it, then you'd need to filter out the press events.

  3. #3
    Registered User
    Join Date
    Feb 2010
    Posts
    45

    Re: splash screen problem

    Construct your splashScreen like this:

    QSplashScreen splash(QPixmap(QString(":/gfx/splash.png")), Qt::WindowStaysOnTopHint);
    ///////
    //////
    splash.showFullScreen();
    splash.raise();

    With this flag, it won't accept taping

Similar Threads

  1. Splash screen problem
    By ram4soft in forum Symbian
    Replies: 6
    Last Post: 2009-12-23, 04:14
  2. Splash Screen Problem??
    By xahid2k in forum Symbian User Interface
    Replies: 1
    Last Post: 2009-08-01, 17:56
  3. 6300 splash screen problem
    By damien_a in forum Mobile Java General
    Replies: 2
    Last Post: 2008-03-24, 06:11
  4. Splash Screen problem
    By damien_a in forum Mobile Java General
    Replies: 2
    Last Post: 2008-03-10, 07:03
  5. Splash Screen Problem
    By ash_21 in forum Symbian
    Replies: 25
    Last Post: 2007-09-06, 13:50

Posting Permissions

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