Results 1 to 10 of 10

Thread: splash screen problem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2011
    Posts
    6
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Symbian S60

    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:

    Qt Code:
    1. QPixmap splashPix(":/Images/splash_new.png");
    2.  
    3.  
    4. splash->setPixmap(splashPix);
    5. splash->showFullScreen();
    6.  
    7. splash->raise();
    8.  
    9. Qt::Alignment topRight = Qt::AlignRight | Qt::AlignTop;
    10. splash->showMessage(QObject::tr("Checking connectivity"),
    11. Qt::AlignJustify, Qt::white);
    12. Utils::sleep(1);
    13. splash->showMessage(QObject::tr("Checking connectivity."),
    14. Qt::AlignJustify, Qt::white);
    15. Utils::sleep(1);
    16. splash->showMessage(QObject::tr("Checking connectivity.."),
    17. Qt::AlignJustify, Qt::white);
    18.  
    19. Utils::sleep(1);
    20. splash->showMessage(QObject::tr("Checking connectivity..."),
    21. Qt::AlignJustify, Qt::white);
    22. splash->clearMessage();
    23.  
    24. net = isConnectedToNetwork(); // connection status call
    25.  
    26. if(net)
    27. {
    28. //Found an interface. Show status & proceed normally.
    29. splash->showMessage(QObject::tr("Connection Found !!"),
    30. Qt::AlignJustify, Qt::green);
    31. qWarning("Connection found....");
    32. Utils::sleep(2);
    33. splash->showMessage(QObject::tr("Launching application"),
    34. Qt::AlignJustify, Qt::green);
    35. Utils::sleep(1);
    36. splash->showMessage(QObject::tr("Launching application."),
    37. Qt::AlignJustify, Qt::green);
    38. Utils::sleep(1);
    39. splash->showMessage(QObject::tr("Launching application.."),
    40. Qt::AlignJustify, Qt::green);
    41. Utils::sleep(1);
    42. splash->showMessage(QObject::tr("Launching application..."),
    43. Qt::AlignJustify, Qt::green);
    44. Utils::sleep(1);
    45. }
    46. else
    47. {
    48. qWarning("Comes here");
    49. splash->showMessage(QObject::tr("No Internet Connection !!\nPlease check the network settings.\nTrackIt will now exit..."),
    50. Qt::AlignJustify, Qt::red);
    51. Utils::sleep(5);
    52.  
    53. return -1;
    54. }
    55.  
    56. Utils::sleep(5);
    57.  
    58. splash->clearMessage();
    59. splash->finish(w);
    60.  
    61. w->showFullScreen();
    62. delete splash;
    63. splash = NULL;
    To copy to clipboard, switch view to plain text mode 

    Can anyone please help me with this issue?

    Thanks and Regards.
    Last edited by high_flyer; 14th January 2011 at 08:48. Reason: code tags

Similar Threads

  1. Problem with Splash Screen ?
    By vinod in forum Qt Programming
    Replies: 13
    Last Post: 11th April 2020, 17:15
  2. How to Keep Splash Screen and App on Same Display
    By ajb_advance in forum Qt Programming
    Replies: 2
    Last Post: 4th March 2009, 11:49
  3. Splash screen showing for two seconds
    By Koas in forum Qt Programming
    Replies: 5
    Last Post: 17th October 2008, 19:40
  4. Splash Screen
    By Salazaar in forum Newbie
    Replies: 27
    Last Post: 4th June 2007, 17:31
  5. QTimer based Splash Screen
    By bpetty in forum Newbie
    Replies: 6
    Last Post: 15th December 2006, 00:51

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.