Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.5k Posts
  • Qt Quick 1.1

    5
    0 Votes
    5 Posts
    4k Views
    2
    I mean qt quick will be developed as a separate module from qt.
  • Load QML Plugins through QDeclarativeEngine

    7
    0 Votes
    7 Posts
    5k Views
    A
    Currently doing a fresh rebuild now... Surprisingly I get a new error msg now @QWidget: Cannot create a QWidget when no GUI is being used@ So hooray, the plugin-loading seems not to be the problem...for the moment ;)
  • Filebrowser using QML

    12
    0 Votes
    12 Posts
    12k Views
    A
    I have actually raised a bug for the issue http://bugreports.qt.nokia.com/browse/QTBUG-17141
  • Orientation Lock is not working when set with qt sdk 1.1

    3
    0 Votes
    3 Posts
    2k Views
    R
    I tried on N8, its working fine. This is the code information I have In TestApp.pro file @# Avoid auto screen rotation DEFINES += ORIENTATIONLOCK @ In main.cpp file @viewer.setOrientation(QmlApplicationViewer::ScreenOrientationLockPortrait);@
  • How to write logs into files?

    5
    0 Votes
    5 Posts
    15k Views
    M
    Hi, As the above comments indicate, there is no "pure-QML" solution to this problem -- you'll need to do some C++ coding in order to write to a file. This could be done by overriding the message handlers, or exposing you own custom function to QML that takes care of the writing. "This page":http://doc.qt.nokia.com/4.7-snapshot/qtbinding.html#exchanging-data-between-qml-and-c gives more information on some of the ways to communicate between C++ and QML. Regards, Michael
  • XmlListModel & XmlRole with RSS

    10
    0 Votes
    10 Posts
    8k Views
    B
    You can make a nested view by having a model + delegate for the channels, then in that delegate, have a model + delegate for the programs. E.g. @ ListView { width: 300; height: 500 model: XmlListModel { source: ... query: "/GetProgramGuideResponse/ProgramGuide/Channels/Channel" XmlRole { name: "channel"; query: "@name/string()" } } delegate: Row { Text { text: channel } ListView { width: 300; height: 100 model: XmlListModel { source: ... query: "/GetProgramGuideResponse/ProgramGuide/Channels/Channel[@name='" + channel + "']" XmlRole { name: "programTitle"; query: "Program[1]/@title/string()" } } delegate: Text { text: programTitle } } } } @
  • Listview delegate & Connect with C++ Backend

    2
    0 Votes
    2 Posts
    2k Views
    C
    Could you be a little more specific? But ITM maybe "this example":http://wiki.forum.nokia.com/index.php/CS001625_-_Connecting_Qt_signal_to_QML_function might help you.
  • [Solved]Button update, ListView and pyside model

    2
    0 Votes
    2 Posts
    3k Views
    B
    I have made it to work, I don't know if there is an easier way of doing it but this is the way I have done it... I changed the button like this (pythonList is the id of the ListView.) @onClicked:{ controller.rollDice(pythonList.currentIndex)}@ in python controller class i did this: @QtCore.Slot(int) def rollDice(self,currentindex): wrappedPlayers[currentindex].setDice()@ and in the wrapper I did this: @def setDice(self): tmp=random.randint(1,6) print tmp self._player['dice']=tmp self.changed.emit() changed = QtCore.Signal() dice = QtCore.Property(int, _dice,setDice, notify=changed) #(_dice is the function that just returns the name not used now.) @ this is what i base my list on: @players = [{'name':'Jerry','sum':24,'dice':1},{'name':'Jonas','sum':35,'dice':6},{'name':'Ted','sum':29,'dice':4},{'name':'Jimmy','sum':25,'dice':3}] wrappedPlayers = [Wrapper(player) for player in players] playerList = playerListModel(wrappedPlayers) ... rc.setContextProperty('pythonListModel', playerList)@
  • MaskedItem question

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • WebView access to HTTP Status Code

    4
    0 Votes
    4 Posts
    5k Views
    M
    I will give that XMLHttpRequest a try. Thanks for the suggestion! "http://bugreports.qt.nokia.com/browse/QTBUG-17405":http://bugreports.qt.nokia.com/browse/QTBUG-17405
  • Embedding swf to qt

    4
    0 Votes
    4 Posts
    3k Views
    D
    Not sure that you can do it via QML WebView, but default QWebView can use netscape plugins. You can read more about it "here":http://doc.qt.nokia.com/4.7/qtwebkit.html
  • [solved] StringList as model for GridView

    4
    0 Votes
    4 Posts
    4k Views
    D
    ragesoft, don't forget to mark thread as [solved]
  • Minimum config for QtQuick

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • OpenGL Requirements?

    3
    0 Votes
    3 Posts
    3k Views
    G
    Bump. Still having this issue. Does QML support Back Buffer OpenGL?
  • [closed] urgent help needed

    Locked
    6
    0 Votes
    6 Posts
    2k Views
    M
    Hi imrrk, It would be great if you could spend some more time on writing the issue description, as Andre suggests. It's difficult for us to understand what you are saying. I'm closing this thread, but I welcome you to start over again when you have a proper description of your issue. We also have non-English forums here, perhaps that would be easier. (I'm guessing English isn't your native language, please forgive me if I'm wrong)
  • Model for unstructured data

    2
    0 Votes
    2 Posts
    2k Views
    A
    I am not sure what you mean exactly. What is the problem? Is your problem that you don't have a structured data source, or that you think your presentation of the data is unstructured? Please rephrase your question, and try to be specific. For instance, [quote]How should I create an XML modle to display data that I retrieve from some URL ?[/quote] is very vague. It all depends on what's on that URL, as you can imagine. Also, your idea of what kind of view you do want (if you don't want a list, or a grid) is not very clear. Perhaps a sketch or a link to a screenshot of an application that looks like you want can bring some clarity?
  • "QtMultimediaKit" is not installed Problem

    9
    0 Votes
    9 Posts
    6k Views
    S
    thanks for correcting me.
  • [Solved] Create listmodel in a function

    3
    0 Votes
    3 Posts
    2k Views
    S
    I am also interested in seeing how you created a dynamic list. This would help greatly. Like do you do some array type work as well?
  • [Solved] Read different Feeds

    5
    0 Votes
    5 Posts
    3k Views
    L
    Hey really thousand thanks to you, it seems like I had overred that peace of information from the doc. Problem solved, it works great now!
  • [SOLVED]Setting state in Loader component

    4
    0 Votes
    4 Posts
    7k Views
    I
    hey i also have one problem with loader.......... consider the below code...... @import QtQuick 1.0 Rectangle { id: container width: 300 height: 500 color: "black" Loader { id: loader width: 300 height: 500 anchors.rightMargin: 0 anchors.fill: parent visible: source != "" } Column { x: 25 y: 35 opacity: 1 clip: false anchors.verticalCenterOffset: 0 anchors.horizontalCenterOffset: 0 spacing: 10 anchors.centerIn: parent visible: !loader.visible Button1 { label: "Play"; onClicked: container.state = "play" } Button1 { label: "Controls"; onClicked: container.state = "control" } Button1 { label: "About Us"; onClicked: container.state = "aboutus" } Button1{ label: "Quit"; onClicked: Qt.quit(); } } Connections { target: loader.source != "" ? loader.item : null onClicked: loader.source = "" } states: [ State { name: "play" PropertyChanges { target: loader x: 0 y: 0 anchors.rightMargin: 0 anchors.bottomMargin: 0 anchors.leftMargin: 0 anchors.topMargin: 0 source: "Play.qml" } }, State { name: "control" PropertyChanges { target: loader x: 0 y: 0 anchors.rightMargin: 0 anchors.bottomMargin: 0 anchors.leftMargin: 0 anchors.topMargin: 0 source: "Control.qml" } }, State { name: "aboutus" PropertyChanges { target: loader x: 0 y: 0 anchors.rightMargin: 0 anchors.bottomMargin: 0 anchors.leftMargin: 0 anchors.topMargin: 0 source: "Aboutus.qml" } }@ this code work fine....iand i am able to navigate through pages........but...if i made till changes in the above code...like the one below...the code doesnot work... @import QtQuick 1.0 Rectangle { id: container width: 300 height: 500 color: "black" item{ id:item1; source:"/pics/sun.png"; } Loader { id: loader width: 300 height: 500 anchors.rightMargin: 0 anchors.fill: parent visible: source != "" } Column { x: 25 y: 35 opacity: 1 clip: false anchors.verticalCenterOffset: 0 anchors.horizontalCenterOffset: 0 spacing: 10 anchors.centerIn: parent visible: !loader.visible Button1 { label: "Play"; onClicked: container.state = "play" } Button1 { label: "Controls"; onClicked: container.state = "control" } Button1 { label: "About Us"; onClicked: container.state = "aboutus" } Button1{ label: "Quit"; onClicked: Qt.quit(); } } Connections { target: loader.source != "" ? loader.item : null onClicked: loader.source = "" } states: [ State { name: "play" PropertyChanges { target: loader x: 0 y: 0 anchors.rightMargin: 0 anchors.bottomMargin: 0 anchors.leftMargin: 0 anchors.topMargin: 0 source: "Play.qml" } }, State { name: "control" PropertyChanges { target: loader x: 0 y: 0 anchors.rightMargin: 0 anchors.bottomMargin: 0 anchors.leftMargin: 0 anchors.topMargin: 0 source: "Control.qml" } }, State { name: "aboutus" PropertyChanges { target: loader x: 0 y: 0 anchors.rightMargin: 0 anchors.bottomMargin: 0 anchors.leftMargin: 0 anchors.topMargin: 0 source: "Aboutus.qml" } }@ here i have just added image on rectangle...and then push buttons...but i am not able to navigate........ so please help me out.......