跳到內容

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k 主題 77.4k 貼文
  • [Solved] Quick Menu is not modal?

    2
    0 評價
    2 貼文
    921 瀏覽
    B
    I found a workaround: do my post-context-menu work when focus is returned to another window. That is, connect a handler to QApp.focusWindowChanged. To be clear about the problem: my model layer (in C++ or Python) is emitting a signal to the UI layer (QML) to show a Menu (context menu) in a QQuickWindow. Execution continues in the model after emitting the signal (not synchronous.) The context menu receives focus (but I'm not sure what events the model continues to receive, i.e. it might be receiving mouseMoveEvents? That is, I'm not sure the context menu is modal in the sense that it is the only window receiving pointer and key events). After the user chooses an item of the context menu, or clicks outside of it, focus is returned to the main window and the model receives a focusWindowChanged signal. In the handler, the model unhighlights (unselects) the operand of the context menu.
  • [SOLVED]Disable drag in MouseArea

    8
    0 評價
    8 貼文
    7k 瀏覽
    sierdzioS
    You're welcome mate/ nie ma sprawy :-)
  • Problems with accessibility when QML Window is used

    6
    0 評價
    6 貼文
    2k 瀏覽
    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 評價
    3 貼文
    1k 瀏覽
    ?
    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 評價
    4 貼文
    2k 瀏覽
    D
    Please add [SOLVED] to thread title
  • [SOLVED] After setting default item index of QCombobox will not be updated on GUI

    5
    0 評價
    5 貼文
    2k 瀏覽
    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 評價
    3 貼文
    950 瀏覽
    T
    Hi Gianluca, Thanks for your feedback . I will consider it
  • Are there any samples or documentation on coding a Qt Quick application using C++?

    3
    0 評價
    3 貼文
    893 瀏覽
    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 評價
    2 貼文
    1k 瀏覽
    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 評價
    2 貼文
    6k 瀏覽
    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 評價
    4 貼文
    1k 瀏覽
    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 評價
    4 貼文
    6k 瀏覽
    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 評價
    1 貼文
    655 瀏覽
    尚無回覆
  • Audio but NO video while display .MOV file &#40;qml & MediaPlayer&#41;

    3
    0 評價
    3 貼文
    1k 瀏覽
    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 評價
    2 貼文
    1k 瀏覽
    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 評價
    3 貼文
    1k 瀏覽
    P
    Thank you very much "xenotrax" , the solution works fine for me .
  • Looking for Example of QML using a table view editor via a C++ back end to edit XML files

    1
    0 評價
    1 貼文
    1k 瀏覽
    尚無回覆
  • Swipe Screen[solved]

    11
    0 評價
    11 貼文
    3k 瀏覽
    D
    Please add [SOLVED] to your thread title!
  • Looking for Example of QML using QtWebKit via C++ back end to edit XHTML

    1
    0 評價
    1 貼文
    552 瀏覽
    尚無回覆
  • How the setup source control with the QT-Creator (GIT or SVN)

    2
    0 評價
    2 貼文
    1k 瀏覽
    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.