Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.6k Posts
  • Simple QML slider app

    5
    0 Votes
    5 Posts
    2k Views
    N
    Anyone can further provide update on this ?
  • 0 Votes
    7 Posts
    6k Views
    F
    OK, thanks for the replies. I make large applications, I will not do something great with QML, but will not be small. will have many of user interface screens, maybe 30 ~ 50. do not want heavy application. Will it consume too much CPU or Memory or will it take to start?
  • Image and warning X3206: implicit truncation of vector type

    2
    0 Votes
    2 Posts
    4k Views
    C
    I don't know much about why this warning is emitted, but it happens when the (in this case, default) GLSL shader (and in this case, I assume it's a fragment shader) is compiled. We're getting well out of my area of competence, but I think that there's probably an issue with ANGLE regarding how the GLSL shader is converted to HLSL, which causes an assignment (most likely of a uniform) to a different type, causing an implicit truncation. Build your Qt with desktop openGL configuration instead of ANGLE, and you should see this go away. Cheers, Chris.
  • Scrolling using QtQuick 5.0 Canvas

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    2 Posts
    2k Views
    T
    http://stackoverflow.com/questions/9153629/regex-code-for-removing-fwd-re-etc-from-email-subject Found something for the above
  • Beginner Question: Connecting to QML Signals

    5
    0 Votes
    5 Posts
    3k Views
    S
    I have been trying to use the Qml-grid view in my code. I am on a mission to couple it with my C++ code which I have been in vain so far. I think my problem occurs when I try to generate the signal from the qml rectangle. I will definitely update you with the results once I have done with it. "super-beta-prostate.com":http://www.super-beta-prostate.com
  • Create a plugin library of reusable QML files

    5
    1 Votes
    5 Posts
    4k Views
    C
    I'm not entirely sure what you mean, so maybe my advice won't be useful. But, basically: your "QML module" will be installed to a directory (the QML import path). Your application, which imports that module, can reside wherever it likes, it just needs the correct import statement. For example, if in your application's QML file you have: @ import com.example.components 1.0 @ then the QML engine will look in $QTDIR/qml/com/example/components for the module specification file ("qmldir"). You shouldn't need to include any of the paths to anything, in the .pro/.pri files of the application itself. To answer your final question, yes it's absolutely possible to define plugins with C++ defined types - there is a section about that in the documentation. Your plugin cpp should use qmlRegisterType (and related functions) to register the C++-defined types as QML types. Cheers, Chris.
  • Qt and fork()

    4
    0 Votes
    4 Posts
    8k Views
    SGaistS
    waitForFinished blocks the event loop so converterStarted and converterFinished will be called one after the other after converterProc has ended thus you won't see "Wait!". If you just want to avoid several start of the converter and keep you UI responsive, you could disable pushButton while the converter is running.
  • 0 Votes
    4 Posts
    2k Views
    U
    Yes, it is all perfectly possible.
  • Starting with the Qt Quick Tutorial...

    4
    0 Votes
    4 Posts
    2k Views
    J
    Qt Quick 1 with built-in elements
  • 0 Votes
    10 Posts
    11k Views
    J
    The two links above doesn't work. Can anyone tell me how to solve exactly this problem? I can't connect a signal in a delegate to a slot in my C++ code...
  • About Qt help documents

    5
    0 Votes
    5 Posts
    2k Views
    J
    I re-install QT5 from .run file of QT official site, it is Ok now, thanks.
  • How to embed QTableView to QML-based GUI

    5
    0 Votes
    5 Posts
    5k Views
    P
    passing
  • Qml evaluatejavascript problem

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Qt Quick 2, is there no resources out there on this?

    6
    0 Votes
    6 Posts
    2k Views
    W
    http://qt-project.org/doc/qt-5.0/qtquick/qtquick-qmltypereference.html this link is good. And search anything in the top-right search box, I feel it useful.
  • Custom QML Library: Styling practices

    6
    0 Votes
    6 Posts
    3k Views
    J
    Actually, an interesting idea is to remove the keyboard's specific implementation of their keyboard delegate and place it into a different file, then the properties will be correctly inherited: @ // library land // Bluekey.qml KeyboardButton { text: value; value: key shiftValue: key style: keyboard.style; width: buttonWidth; height: buttonHeight; onClicked: keyboardCLButtonClicked(text); buttonCLStyle: styleCLButton; shiftTextFontSize: keyboard.shiftTextFontSize; shiftTextFontFamily: keyboard.shiftTextFontFamily; shiftTextFontWeight: keyboard.shiftTextFontWeight; shiftTextColor: keyboard.shiftTextColor } // bluekeyboard.qml Rectangle { id: keyboard // bunch of properties .... property Component keyboardDelegate: Bluekey { } Repeater { model: myModel Loader { property string key: myModel.get(index).key sourceComponent: keyboardDelegate } } } // user land //main.qml Rectangle { property Component buttonDelegate: Bluekey { color: key == "E" ? "red" : "blue" } Keyboard { keyboardDelegate: buttonDelegate } } @ Any feedback on this? Thanks for the suggestions Jens!
  • [Solved] GridView wraps to late.

    3
    0 Votes
    3 Posts
    2k Views
    K
    Thanks a lot. That answers my question.
  • Loading qml into an area of main.qml

    3
    0 Votes
    3 Posts
    1k Views
    D
    Quick look seems like you have given me an answer, I will get on with the coding. BIG thanks
  • QML ShaderEffect and property type

    4
    0 Votes
    4 Posts
    2k Views
    C
    The property types which are provided by QtQuick are listed at http://doc-snapshot.qt-project.org/qt5-stable/qtquick/qtquick-qmltypereference.html#basic-types however not all of them have conversions to uniforms/varyings in ShaderEffect. Matrix3x3 doesn't exist at all. vector2d, vector3d, vector4d, quaternion and matrix4x4 should all have conversions. Cheers, Chris.
  • How to build Qt3d?

    5
    0 Votes
    5 Posts
    3k Views
    W
    Oh, Qt53Dd.dll and Qt53DQuickd.dll are in my $QTDIR\bin. :)