How are you calling ::componentComplete? You can also try adding some variable in your that you increment each time requestImage is called to make sure it gets incremented with a single instance....
Type: Posts; User: Villep; Keyword(s):
How are you calling ::componentComplete? You can also try adding some variable in your that you increment each time requestImage is called to make sure it gets incremented with a single instance....
What ::componentComplete are you referring to? Component.onCompleted inside QML? How are you trying to populate m_list, C++ side or inside some QML file?
Br,
Villep
Are you populating m_list before opening any QML file?
Br,
Villep
How are you populating the pagestack? Are you pushing Qt.resolvedUrls or Components, or are you pushing defined items ? More info here. Have you tried if you have the same problems with QML...
Unfortunately there is no easy way to change the ListItem pressed graphics. Easiest way is to do what you already did, implement your own delegate and use a MouseArea combined with onPressed,...
Which platform(s) are you developing for? Are you using your own delegate in the ListView?
Br,
Villep
All you need to do is declare the property message in page2.qml. You can rename the parameter as you wish, just make sure the property you use in pageStack.push is some existing property.
For...
How are you handling the pages? If you are using the pageStack you can try passing the string in a property as described here.
Br,
Villep
Hello!
That error is coming from missing an #include <QDeclarativeContext> from your main.cpp.
Also in eventfilter.h you should add #include <QEvent> and then add
bool eventFilter(QObject...
Which version of Qt are you using? If you are using older Qt which has QtQuick 1.0 then you need to do some additional work to get the active state because Qt.application was introduced in QtQuick...
Another possible solution is create "empty" ListElements and then on ListModel completed use qsTr on the elements.
model: ListModel {
id: list
ListElement { name: "" }
...
That happens when the userID is not set yet, before loadUser was called. One work around is the following.
Image {
source: Facebook.globalUserID == "" ? "" : "https://graph.facebook.com/"...
You shouldn't call parseUser yourself, because it takes the HTTPResponse as parameter which should be given by your doWebRequest function. Instead call loadUser somewhere in your code. Then make sure...
Hello!
1. To save the gamestate in a simple QML + JS game you can take a look at the QML Database API, this however requires some understanding of SQL. For more complex games you might have to...
Code examples can be found here. There are a couple of game examples there, QuickHit 2.0 and Battkeships to name a few.
Br,
Villep
The version of parseUser doesn't return a value atleast. So if you are are trying to use the return value to get the userid then you should add
return user.id; to the end of parseUser.
Br,...
Perhaps you can try something like
var globalUserID = null;
function loadUser() {
var url = "https://graph.facebook.com/me?" + mainAccessToken;
doWebRequest("GET", url, "",...
Currently it's not possible to play an audio file from the resource file. You should deploy them separately or if you want to use a resource file you can use a workaround described here to extract...
You can use a QML Timer element to change the element using its onTriggered method.
As such:
Timer {
interval: 5000 //Milliseconds
running: true
repeat: true
...
It is possible to change the icon. You can create a custom 20x20 icon as mentioned here. Then you can simply use the constructor of Command that takes an image as a parameter to use it.
Br,
Villep
You can probably do something like.
In your Imagepicker.qml
//Add these to the Page
property alias imageModel : gridci.model
property string selectedImage : ""
/* Then in your GridView...
What do you have in your MainPage.qml on the Image onClicked? Are all your images from the document gallery?
Br,
Villep
What does imagepicker contain ? Perhaps you can add a simple property / property alias in imagepicker.qml that you modify based on which image was clicked to populate imagepicker?
Br,
Villep
For full touch it is possible using Command. The last Command added will be displayed on the right action button unless you manually specify offset. If you are using back button make sure you add and...
A quick temporary workaround, manually build both ButtonQmlPlugin and RestoreButtonApp by right-clicking on them and selecting build / rebuild if you have built already. After that building the...