×

Discussion Board

Search:

Type: Posts; User: Villep; Keyword(s):

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds; generated 10 minute(s) ago.

  1. Re: QT QDeclarativeImageProvider child class single instance?

    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....
  2. Re: QT QDeclarativeImageProvider child class 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
  3. Re: QT QDeclarativeImageProvider child class single instance?

    Are you populating m_list before opening any QML file?

    Br,
    Villep
  4. Replies
    4
    Views
    1,219

    Re: Symbian QML VKB problem

    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...
  5. Replies
    4
    Views
    1,170

    Re: Customizing qml ListView look

    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,...
  6. Replies
    4
    Views
    1,170

    Re: Customizing qml ListView look

    Which platform(s) are you developing for? Are you using your own delegate in the ListView?

    Br,
    Villep
  7. Replies
    4
    Views
    1,379

    Re: How to send a property to another qml file?

    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...
  8. Replies
    4
    Views
    1,379

    Re: How to send a property to another qml file?

    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
  9. Replies
    6
    Views
    1,504

    Re: Saving Game State & Pausing Inactive Game

    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...
  10. Replies
    6
    Views
    1,504

    Re: Saving Game State & Pausing Inactive Game

    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...
  11. Replies
    3
    Views
    1,381

    Re: Qml SelectionDialog and qsTr

    Another possible solution is create "empty" ListElements and then on ListModel completed use qsTr on the elements.



    model: ListModel {
    id: list
    ListElement { name: "" }
    ...
  12. Replies
    8
    Views
    1,814

    Re: Create user ID in Facebook.js

    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/"...
  13. Replies
    8
    Views
    1,814

    Re: Create user ID in Facebook.js

    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...
  14. Replies
    6
    Views
    1,504

    Re: Saving Game State & Pausing Inactive Game

    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...
  15. Replies
    1
    Views
    3,225

    Re: Best Resources to Learn Game Programming

    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
  16. Replies
    8
    Views
    1,814

    Re: Create user ID in Facebook.js

    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,...
  17. Replies
    8
    Views
    1,814

    Re: Create user ID in Facebook.js

    Perhaps you can try something like



    var globalUserID = null;

    function loadUser() {
    var url = "https://graph.facebook.com/me?" + mainAccessToken;
    doWebRequest("GET", url, "",...
  18. Replies
    4
    Views
    1,350

    Re: Resources in QT/QML?

    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...
  19. Replies
    1
    Views
    1,179

    Re: Auto rotate ListView Elements

    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
    ...
  20. Re: How to set action button 1 (right-most location of the header bar) for LWUIT form

    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
  21. Replies
    7
    Views
    1,416

    Re: Qml page with multi images

    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...
  22. Replies
    7
    Views
    1,416

    Re: Qml page with multi images

    What do you have in your MainPage.qml on the Image onClicked? Are all your images from the document gallery?

    Br,
    Villep
  23. Replies
    7
    Views
    1,416

    Re: Qml page with multi images

    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
  24. Re: How to set action button 1 (right-most location of the header bar) for LWUIT form

    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...
  25. Replies
    1
    Views
    2,660

    Re: one_click_buy_qml

    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...
Results 1 to 25 of 55
Page 1 of 3 1 2 3
×