Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • QML signals/slots: can't pass QObject* to slot

    6
    0 Votes
    6 Posts
    3k Views
    P
    My classes extends QObject, so they have not public copy constructor compilation fail with error: In file included from ../Test/main.cpp:3: In file included from /usr/include/qt4/QtDeclarative/QtDeclarative:3: In file included from /usr/include/qt4/QtCore/QtCore:4: In file included from /usr/include/qt4/QtCore/qabstractitemmodel.h:45: In file included from /usr/include/qt4/QtCore/qvariant.h:48: /usr/include/qt4/QtCore/qmetatype.h:142:16: error: calling a private constructor of class 'ClassA' return new T(*static_cast<const T*>(t));
  • XmlListModel - Loading large XML file causes crash

    3
    0 Votes
    3 Posts
    2k Views
    S
    Thank you. I'm using qt 4.7.4 and it works fine in the simulator, it only crashes on the actual devices ( C7 and E7). Everytime it crashes the only message i get is "Thread has crashed: Thread XXXX has panicked. Category: USER; Reason: 0".
  • Break cycle of the PathView

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • [resolved] Newbie at Qt. Doubt how to add Resource Files in a Project.

    4
    0 Votes
    4 Posts
    2k Views
    D
    Resolved.
  • Odd behavior when passing value through WorkerScript

    4
    0 Votes
    4 Posts
    2k Views
    O
    This seems not working each time. A better idea is to use @property string t1@ then convert it int in the test.js @parseInt(t1)@ [quote author="owenzhao" date="1339232752"]Currently , the only way is using parseInt() and toString() together, like @parseInt(new Date().getTime().toString())@[/quote]
  • [SOLVED] ListView delegates and offsetting

    6
    0 Votes
    6 Posts
    4k Views
    A
    i solved this issue like so @ property int xx: 8 %iconModel.count property int yy: 155 x: if(iconModel.count < 9){(yy * xx) /2 }else{ 0 } @ so the remainder of what iconmodel.count is in my case was 7 with a remainder of 1 * the space required and cut that in half gives me my position :)
  • QML Textfield & Virtual Keyboard & PageStack on Meego Harmattan

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Delet a QML page from pagestack

    3
    0 Votes
    3 Posts
    2k Views
    L
    Use pageStack.find to get the page which you want to pop up.
  • Animating an image

    10
    0 Votes
    10 Posts
    3k Views
    M
    See http://qt.nokia.com/downloads/downloads#qt-lib bq. The source code is available as a zip (260 MB) or a tar.gz (228 MB). Or visit the repository at qt.gitorious.org/qt. It would be under .../src/declarative (and some headers strewn about) Just a warning... There's a lot of code involved, though. Again, though, I ask... what is it that you're trying to accomplish? If you describe what you're trying to do, we can probably give you better feedback as to whether the timer mechanism is sufficient.
  • Using C++ Library in QML

    17
    0 Votes
    17 Posts
    11k Views
    F
    This thread is continued "here":http://qt-project.org/forums/viewthread/17435/.
  • QZXing compiling error for symbian

    6
    0 Votes
    6 Posts
    3k Views
    F
    First thing, have you seen my post to your "other thread":http://qt-project.org/forums/viewthread/17391/? Also if you are targeting Symbian Belle i would suggest you update through Qt Creator packet manager to get the Symbian Belle toolchain (i will guest you have Symbian Anna toolchain). Next be sure to copy the correct binary version of QZXing to the correct folder. Finally the most important thing, donwload the latest version of the library files. I just figured out from your other post that you have downloaded the library from a repository that is outdated (https://github.com/zxing/zxing). The correct repositories you have to take a look at are: The "QZXing's project page":https://projects.developer.nokia.com/QZXing/browser The official and most up to date "ZXing site":http://code.google.com/p/zxing/source/checkout . In there under the folder Symbian you will find QZXing once again (The first option is recommended since you won't have to download other unnecessary files. ) So do all the updates, try it once again and get back to us with the result.
  • Qt mobility 1.1.0 with Qt 4.7.0 help

    21
    0 Votes
    21 Posts
    11k Views
    M
    You didnot have to go through that much trouble. There seems to be a problem with the path variable. make sure that you have given it correctly and that all the extensions are separated by ";". Hope it helps
  • Q: Loading colors from QML offline database ?

    3
    0 Votes
    3 Posts
    2k Views
    ?
    Hmm, I think you're right. I never thought it wouldn't work because I've been able to return the value on web projects for example. I tried this on my MainPage.qml: @Component.onCompleted: console.log(Database._Load_ColorTheme())@ And guess what... It gives me 'undefined'! So how I'm supposed to do this then? I got an idea, that I could use 'Label' or 'Text' components, and load the new color from a 'text' variable. But after all, this should work like a Javascript in any other situation, right .. ? So what's going wrong here?
  • 0 Votes
    3 Posts
    10k Views
    C
    Yes, the assignment form in your first post won't cause a binding. In QtQuick 1.x you can use a Binding element, and in QtQuick 2.0 you can either use a Binding element, or use the "initial property values" argument to the setSource function of the Loader, along with the Qt.binding() function, to generate a binding.
  • Qt3D

    3
    0 Votes
    3 Posts
    2k Views
    C
    Thanx sooooooooooooooooooo much I solved by your help of course
  • Why does QML Rectangle radius is only outside ? [Solved]

    11
    0 Votes
    11 Posts
    4k Views
    EddyE
    So, to have an inside radius, you'll have to make radius bigger than the border width. If this solves your question, could you please edit your first post and add [solved] to it? Thanks.
  • QtQuick Leak on setSource or API misuse by me?

    2
    0 Votes
    2 Posts
    2k Views
    A
    I tried using a "QML loader":http://doc.qt.nokia.com/4.7-snapshot/qml-loader.html instead of calling setSource from C++ but that also leaks.
  • Centering of GridView and wrap around

    3
    0 Votes
    3 Posts
    2k Views
    P
    You could use Repeater for each set of GridView 3x3
  • Performance issue of QQuickPaintedItem

    5
    0 Votes
    5 Posts
    3k Views
    D
    Thanks for your suggestion. I replace QQuickPaintedItem with QQuickItem and solve the performance issue now. And I found VideoOutput in QtMultimedia is a good solution, too.
  • 0 Votes
    2 Posts
    2k Views
    A
    For those who can be interested in that, I've resolved, but not in a elegant way! In myListView I've created a qml ListModel attached to ListView and then thru javascript functions they manipulate ListModel. But important, you cannot pass from within C++ to qml a flat QList<QObject*> because itsn't supported well, instead you need to pass the QList thru setContextProperty of QDecalarativeContext to use in qml Bye