×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    99

    Symbian device crash if using setCentralWidget?

    Hi..
    has anybody encountered this problem?

    0) install Nokia Qt SDK 1.0
    1) start new qt mobile application
    2) create new application and copy&paste the first example from http://wiki.forum.nokia.com/index.ph...Qt_for_Symbian
    3) deploy on Symbian device (mine is 5800xm), device reboots when main.cpp calls "w.show()" or "w.showMAximize()"

    Remove the call :
    Code:
    setCentralWidget(label1);
    and it does not crash!!!!!!

    (qt crerator= 4.7.0, qt=4.6.3)

    PS: i just noticed that the Nokia Qt SDK comes with Qt 4.7.0, BUT THE PROVIDED SIS FILE INSTALLS ONLY Qt 4.6.3!!!!!!!!!!
    Last edited by gardiol; 2010-07-07 at 15:36.

  2. #2
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: Symbian device crash if using setCentralWidget?

    Never heard of that problem before, and kind of hard to see how it could happen, unless you're somehow using up memory, blowing the stack, etc.

  3. #3
    Registered User
    Join Date
    Jul 2010
    Posts
    99

    Re: Symbian device crash if using setCentralWidget?

    Yes, the problem is exactly Qt mismatch.

    The Nokia Qt SDK 1.0 is provided with Qt 4.7.0, but the only provided SIS file installs Qt 4.6.0(3), this leads to the crashes! You have to manually download Qt 4.7.0 install it, get the Qt SIS runtime and install on the phone.

    Honestly, this Nokia Qt SDK is the most buggy, incomplete and awfull piece of software i stumbled upon lately. Dont get me wrong, i love it, but man, please so many bugs, "missing things" and such that setting it up is a real PAIN.

    (i am referring to the QTSDK98 bug, to this Qt mismatch problem, the QtMobility problem, the Location bug and so on...)

  4. #4
    Registered User
    Join Date
    Jul 2010
    Posts
    99

    Re: Symbian device crash if using setCentralWidget?

    Well, actually, the problem is NOT solved, yet.
    Partially, it is solved....
    but still crash...

    Why is Nokia releasing this Qt SDK if it is not yet usable?

  5. #5
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Symbian device crash if using setCentralWidget?

    In Nokia Qt SDK you can choose between Qt 4.7 and Qt 4.6.x, when selecting a target. Qt 4.7 is experimental.

  6. #6
    Registered User
    Join Date
    Jul 2010
    Posts
    99

    Re: Symbian device crash if using setCentralWidget?

    How do you choose? I cannot find where i can do this selection...

  7. #7
    Registered User
    Join Date
    Jul 2010
    Posts
    99

    Re: Symbian device crash if using setCentralWidget?

    And more, if this is the case, Why do i keep crashing on the phone? I mean, phone reboots....

  8. #8
    Registered User
    Join Date
    Apr 2009
    Posts
    32

    Re: Symbian device crash if using setCentralWidget?

    For me it sounds that the installed Qt version on the device is corrupt. Please remove all Qt things on your device and install the provided sis files from the Nokia Qt SDK ( C:\NokiaQtSDK\Symbian\sis )


    Code:
    #include "mainwindow.h"
    
    #include <QLabel>
    
    MainWindow::MainWindow(QWidget *parent) :
        QMainWindow(parent)
    {
        setCentralWidget(new QLabel(
                QString("it is working and on Symbian it is: %1").arg(qVersion()))
                         );
    }

  9. #9
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Symbian device crash if using setCentralWidget?

    Quote Originally Posted by gardiol View Post
    How do you choose? I cannot find where i can do this selection...
    http://www.forum.nokia.com/info/sw.n...ia_Qt_SDK.html
    Section 4.3.

Similar Threads

  1. 6280 Device Crash
    By AdyW_RP in forum General Development Questions
    Replies: 11
    Last Post: 2007-08-16, 14:26
  2. Device crash
    By engrsanjiv in forum Symbian
    Replies: 2
    Last Post: 2004-02-21, 12:07
  3. device crash
    By pranavdesai1 in forum Symbian
    Replies: 0
    Last Post: 2004-02-17, 16:50
  4. device crash
    By pranavdesai1 in forum Mobile Java General
    Replies: 0
    Last Post: 2004-02-17, 16:48

Posting Permissions

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