×

Discussion Board

Search:

Type: Posts; User: oskari.petas; Keyword(s):

Search: Search took 0.03 seconds; generated 2 minute(s) ago.

  1. Re: Qt Quick SelectionDialog with dynamic content from C++

    vineet.jain: No I couldn't
    mahbub_s60: I noticed you have also tried qmlRegisterType sort of thing. Did you ever get that to work?
  2. Re: Qt Quick SelectionDialog with dynamic content from C++

    mahbub_s60: I couldn't get your code to work either. It throws an error: "Unable to assign QVariantList to QDeclarativeListModel*" on model : myModel // mymodel is in CPP file.
    So this implicates...
  3. Re: Qt Quick SelectionDialog with dynamic content from C++

    As said, if in anyway possible I would like to create the instance of the list only via a function call. Your method requires me to set the instance as a context property before I load the QML and...
  4. Re: Qt Quick SelectionDialog with dynamic content from C++

    Could similar behaviour be achieved without this line:

    qmlengine->rootContext()->setContextProperty("languageModel", &langsModel);

    I've tried to work around by registering my type first...
  5. Re: Qt Quick SelectionDialog with dynamic content from C++

    So what am I doing wrong here. I made out the simplemost example of what I figured could work but it displays a blank list only.



    // main.cpp
    #include "qmlapplicationviewer.h"
    #include...
  6. Re: Qt Quick SelectionDialog with dynamic content from C++

    I've read it but I it handles about the case with a custom C++ class but I believe static content registered via setContentProperty
  7. Qt Quick SelectionDialog with dynamic content from C++

    Hi,

    I'm addressing a problem trying to have user select an item with selectiondialog. My app works with network so, that a network request starts when user presses a button and when it returns, it...
Results 1 to 7 of 7
×