Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.7k Posts
  • Problems with accessibility when QML Window is used

    6
    0 Votes
    6 Posts
    2k Views
    SGaistS
    Either a bug or a yet to be implemented feature. You should check the "bug report system":http://bugreports.qt-project.org to see if there's something about it
  • Is it posible to display SVG in Qt(5.3) TextEdit without loosing quality?

    3
    0 Votes
    3 Posts
    1k Views
    ?
    Thank you @shav. I need to resize my custom svg images depending on screen dpi. Maybe that will be posible to achieve with a new web engine in Qt 5.4. For now it seems that's not possible...
  • [SOLVED] How to disable a property:

    4
    0 Votes
    4 Posts
    2k Views
    D
    Please add [SOLVED] to thread title
  • 0 Votes
    5 Posts
    2k Views
    S
    It's now running. The methods insertSeperator() and setCurrentIndex() should not have the same index. Solution below. @ui->comboBox->insertSeparator(4); ui->comboBox->setCurrentIndex(4 + 1);@
  • Building Business Software using Qt

    3
    0 Votes
    3 Posts
    962 Views
    T
    Hi Gianluca, Thanks for your feedback . I will consider it
  • 0 Votes
    3 Posts
    901 Views
    Q
    The texteditor example that ships with the SDK shows you how to do this, basically you register your C++ back end like: @ qmlRegisterType<DocumentHandler>("org.qtproject.example", 1, 0, "DocumentHandler"); @ Then derive your class from QObject, and use Q_PROPERTY: @ Q_PROPERTY(QQuickItem *target READ target WRITE setTarget NOTIFY targetChanged) @ To access the code from QML. There are other methods of doing this, but this one is how they coded this example. "Interacting with QML Objects from C++":http://qt-project.org/doc/qt-5/qtqml-cppintegration-interactqmlfromcpp.html "Exposing Attributes of C++ Types to QML":http://qt-project.org/doc/qt-5/qtqml-cppintegration-exposecppattributes.html What method is best practice or will be the latest and longest supported method is what I would like to know, the lack of documentation and examples is not helping matters much.
  • [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
    662 Views
    No one has replied
  • Audio but NO video while display .MOV file &#40;qml & MediaPlayer&#41;

    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
    560 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
    689 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 !!!