Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User allicius's Avatar
    Join Date
    Apr 2012
    Posts
    13
    Hi,

    I'm totally new in QT. I created a QT quick component for Symbian, I have 3 QML file: main.qml, MainPage.qml and HelpPage.qml. I want the app will show my HelpPage.qml when I press "next" button but it's not work and I don't know why. This is my main.qml:

    PageStackWindow {
    id: window
    initialPage: MainPage {tools: toolBarLayout}
    showStatusBar: true
    showToolBar: true

    ToolBarLayout {
    id: toolBarLayout

    ToolButton {
    flat: true
    iconSource: "toolbar-back"
    onClicked: window.pageStack.depth <= 1 ? Qt.quit() : window.pageStack.pop();
    }

    ToolButton {
    flat: true
    iconSource: "toolbar-next"
    onClicked: pageStack.push(Qt.resolvedUrl("HelpPage.qml"));
    }
    }
    }


    and this is my HelpPage.qml:

    Page {
    id: helpPage

    Image {
    id: background
    source: "background2.jpg"
    width: parent.width
    height: parent.height
    fillMode: Image.PreserveAspectCrop
    clip: true
    }
    }


    Thanks!

  2. #2
    Nokia Developer Champion gaba88's Avatar
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,692
    Hello allicius,

    Great to to see new developers in QML Section.

    Before i help you i am pretty sure , you might be getting some error message in your console of Qt Creator can you check that and let us know about it ??

    Regards,
    gargi

  3. #3
    Registered User allicius's Avatar
    Join Date
    Apr 2012
    Posts
    13
    Hi Gargi,

    Thank for reply me. But there's no error message beside one red line "Cannot retrieve debugging output.", is that a problem? I didn't notice that line because when I run Qt simulator, main.qml and MainPage.qml work fine. What should I do?
    Last edited by allicius; 2012-04-08 at 05:51.

  4. #4
    Registered User allicius's Avatar
    Join Date
    Apr 2012
    Posts
    13
    I have solved the red line "Cannot retrieve debugging output.", now I think I really find the problem. When I run Qt simulator and click on Toolbar-next (it should show HelpPage.qml after that) then the error appear:

    Simulator_Qt_for_MinGW_4_4__Qt_SDK__Debug/qml/NFCMusic/HelpPage.qml:3 cannot load module "com.Nokia.Symbian": File name case mismatch for "C:/QtSDK/Simulator/Qt/mingw/imports/com/Nokia/Symbian.1.1/qmldir"

    I think the "import com.Nokia.Symbian 1.1" line has problem. I don't get it, the MainPage.qml hasthe same line with HelpPage.qml and it works fine but the HelpPage.qml doesn't. Plz help me

  5. #5
    Nokia Developer Champion gaba88's Avatar
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,692
    hello allicius,

    hmmm why dont you try all in small letter i.e.

    import com.nokia.symbian 1.1 instead of import com.Nokia.Symbian 1.1

  6. #6
    Registered User allicius's Avatar
    Join Date
    Apr 2012
    Posts
    13
    wow, it works ^^ thank you so much Gargi and sorry if my question is silly ^^

  7. #7
    Nokia Developer Champion gaba88's Avatar
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,692
    Great that worked for you, and no question is ever silly when you are starting ;-)

Similar Threads

  1. Replies: 2
    Last Post: 2011-11-18, 05:58
  2. MIDlet Push causing registration failed during install
    By issamy1407 in forum Mobile Java General
    Replies: 4
    Last Post: 2010-10-20, 11:20
  3. Registration failed when using MIDlet-Push-1: autostart://:
    By eyalmnm in forum Mobile Java General
    Replies: 1
    Last Post: 2008-12-10, 18:00
  4. WAP Push on Nokia 9500 Failed
    By adywicaksono in forum Smart Messaging
    Replies: 2
    Last Post: 2006-03-03, 07:51

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