Active Topics

 


Reply
Thread Tools
Posts: 2 | Thanked: 0 times | Joined on Oct 2012
#1
Hi guys, I have just started developing app for my N9 using python and QML. I do want to put it out there that I do not have any background in either. Most of my projects have been around Java and Android. Having said that, below is a snippet of the code from my Podio app and I have problems with setting the application in horizontal mode.

Code:
#get user data into a global variable
userS = c.transport.GET.user.status()
app = QtGui.QApplication(sys.argv)

#pretty sure this is redundant. Not sure how to use this class.
#QtCore.Qt.Orientation = QtCore.Qt.AnchorVerticalCenter
view = QtDeclarative.QDeclarativeView()
view.setSource(QtCore.QUrl('podio.qml'))
my_name = walk_dict(userS, "name")
img_link = walk_dict(userS, "thumbnail_link")
print my_name + " " + img_link
root = view.rootObject()
changeText = ChangeCont()

context = view.rootContext()
context.setContextProperty("changeText", changeText)

print c.Space.find_by_url("https://citrix.podio.com/meego-n9-test/")

view.show()
sys.exit(app.exec_())
I am not sure the required code will be in my QML or in PySide.
Any help would be appreciated.

Last edited by anc_k; 2012-11-10 at 21:56. Reason: title [Question]
 
Reply


 
Forum Jump


All times are GMT. The time now is 16:10.