Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • [SOLVED] Qt Quick application creasshed when user close main screen.

    2
    0 Votes
    2 Posts
    1k Views
    shavS
    Ok, I've build my application with Qt 5.4 beta and all works fine!
  • [SOLVED] Qt int to String in qml aka sprintf in c

    2
    0 Votes
    2 Posts
    6k Views
    p3c0P
    Hi, AFAIK there's no direct way to do this. But you could write a function in C++ or in JavaScript to do that. For JS way something like "this":http://stackoverflow.com/questions/1127905/how-can-i-format-an-integer-to-a-specific-length-in-javascript
  • AnimatedImage Bug

    4
    0 Votes
    4 Posts
    1k Views
    p3c0P
    I would suggest you try it with the latest Qt version. If the problem still persists for that platform you can report it as a bug "here":https://bugreports.qt-project.org
  • ComboBox and QAbstractListModel

    4
    0 Votes
    4 Posts
    6k Views
    p3c0P
    textRole expects a string so it should be "name" ReferenceError: modelData is not defined would occur when the Combobox is created (and thus model is set) before the model is actually initialized.
  • How to add event to system calendar? (Organizer / PIM)

    1
    0 Votes
    1 Posts
    655 Views
    No one has replied
  • Audio but NO video while display .MOV file (qml & MediaPlayer)

    3
    0 Votes
    3 Posts
    1k Views
    X
    I compile with msvc .. try this week the aproach with Mingw and K-Lite thanks Gianluca
  • Apply chrome like style to TabView

    2
    0 Votes
    2 Posts
    1k Views
    D
    Hmmm create custom tabs isn't the problem. You can use Canvas and draw what ever you want. Create a custom element maybe derived from QQuickPaintedItem. A tab can be every element derived from Item. The problem in my opinion is which tab style do you mean. I think is platform depended ins't it?
  • [Solved]Problem in QML sate transition when moving multiple images.

    3
    0 Votes
    3 Posts
    1k Views
    P
    Thank you very much "xenotrax" , the solution works fine for me .
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • Swipe Screen[solved]

    11
    0 Votes
    11 Posts
    3k Views
    D
    Please add [SOLVED] to your thread title!
  • Looking for Example of QML using QtWebKit via C++ back end to edit XHTML

    1
    0 Votes
    1 Posts
    552 Views
    No one has replied
  • How the setup source control with the QT-Creator (GIT or SVN)

    2
    0 Votes
    2 Posts
    1k Views
    p3c0P
    Hi, IIRC if you have subversion installed already it will be detected and that field will contain the path to svn executable. If it is empty then Browse and point it to the svn executable.
  • QML source code visible in executable.

    5
    0 Votes
    5 Posts
    2k Views
    p3c0P
    Hi, The only solution for this currently is to use "QtQuickCompiler":http://doc.qt.digia.com/QtQuickCompiler/. But unfortunately this is not available in Qt Open Source. If you have an enterprise license you can use it.
  • Singleton Context Issues

    2
    0 Votes
    2 Posts
    681 Views
    K
    I just found the problem: @var newScreen = Qt.createComponent("qrc:/" + fileName);@ If i dont prefix with qrc:/ it will try to load the file from qrc:/singletonfolder/ Good news is that everything is working !!!
  • Create a 2D Plot with zoom in in qml

    1
    0 Votes
    1 Posts
    666 Views
    No one has replied
  • Qml ListView currentIndex Issue

    6
    0 Votes
    6 Posts
    5k Views
    B
    I was having this same problem, and I had trouble following the solution posted. I eventually figured out a different solution, so I thought I'd post to help out anyone else seeing this problem. Here's what I did: @property int iCurrentSelection: 0 ... function setCurrentSelection( iComboIndex ) { iCurrentSelection = iComboIndex; } ... ComboBox { id: imageCombo width: 150 currentIndex: iCurrentSelection model: ListModel { id: cbSettingsItems3 ListElement { text: "Lung"; } ListElement { text: "Bone"; } } // onActivated is called when the user // sets the combo via the dropdown onActivated: { onImageChanged( index ); iCurrentSelection = currentIndex; } // onCurrentIndexChanged is called whenever the // combo is changed (dropdown or code), // but code changes stop calling it // when the ui is changed. onCurrentIndexChanged: { iCurrentSelection = currentIndex; }@ The important part of the code is the "iCurrentSelection = currentIndex;" lines inside the onActivated and onCurrentIndexChanged calls. This re-connects the "iCurrentSelection" property to the currentIndex. This means that if you change the iCurrentSelection value, the comboBox will change as well, even after you've interacted with the UI to change the ComboBox.
  • [SOLVED] Embed qwidget in QML

    8
    0 Votes
    8 Posts
    12k Views
    F
    Since QDeclarative is marked as deprecated in Qt5 you can use QQuickPaintedItem to draw QWidgets in QML.
  • Categorized logging from QML

    5
    1 Votes
    5 Posts
    2k Views
    D
    Code here https://github.com/dangelog/qmllogging :)
  • NetworkAccessManager like interface in QMl

    9
    0 Votes
    9 Posts
    2k Views
    Z
    [quote author="SGaist" date="1414014463"]Hi, Just a question but, would be xmlhttprequest suited for your needs ? You have an example "here":http://qt-project.org/doc/qt-5/qtqml-xmlhttprequest-example.html[/quote] That would exactly be the interface I need, but I want to make my own class. The http request was just an example, the goal is to do different request/reply functionality. For example remote procedure calls. I looked into the code of xmlhttprequest, but it's heavy javascript based. My goal is to have class useable from C++ and QML. Using the finished() signal of the accessManager is also an option, but this would require a big selector for the response function, if I want a special response function for every request.
  • AnimatedImage Bug Fix

    4
    0 Votes
    4 Posts
    1k Views
    SGaistS
    Don't know for Linux but on OS X, it's working fine