[Solved] NetworkInfo and Symbian components



  • why this doesn't work together?


  • Moderators

    What does not work together? How are you trying to make whichever two work together?



  • if i create simple qml file:
    @import QtQuick 1.1
    import QtMobility.systeminfo 1.1
    import QtMobility.sensors 1.1
    import com.nokia.symbian 1.1

    Item {
    NetworkInfo {
    id: wlaninfo
    mode: NetworkInfo.WlanMode
    monitorNameChanges: true
    monitorSignalStrengthChanges: true
    }
    Text {
    id: signame
    color: "white"
    text: wlaninfo.networkName + " " +wlaninfo.networkSignalStrength
    anchors.horizontalCenter: parent.horizontalCenter
    anchors.verticalCenter: parent.verticalCenter
    }
    }@

    ...im getting this error: Element is not creatable.
    NetworkInfo {
    ^

    removing line: import com.nokia.symbian 1.1 removes the error but means i can't use symbian components



  • import QtMobility.systeminfo 1.1



  • it's already there look at my code snipped... can you paste in your example?



  • I made it as a part of a quite big code but some basic sniplets, ici il est:

    @import QtQuick 1.1
    import com.nokia.symbian 1.1
    import QtMobility.systeminfo 1.1
    import MojeInfo 1.0

    import "gfx"

    @
    @ NetworkInfo{
    id: myNetwork
    }
    @
    @ SysListItem{
    id: sli5
    x: 110
    y: 170
    txt: "MAC: "+myNetwork.macAddress
    }@



  • seems like incorect import order:
    this works:
    @import QtQuick 1.1
    import com.nokia.symbian 1.1
    import QtMobility.systeminfo 1.1@
    this one doesn't:
    @import QtQuick 1.1
    import QtMobility.systeminfo 1.1
    import com.nokia.symbian 1.1@
    thanks for helping me out!



  • Don't remember to edit title and mark topic as [SOLVED] or [CLOSED] :D


  • Moderators

    [quote author="akrynski" date="1331224430"]Don't remember to edit title and mark topic as [SOLVED] or [CLOSED] :D[/quote]

    [Solved], not [Closed]. Closed is something different. (Its when the thread has been closed to further comments.)



  • [quote author="mlong" date="1331227384"]

    [Solved], not [Closed]. Closed is something different. (Its when the thread has been closed to further comments.)[/quote]

    OK. Tnx


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.