Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.6k Posts
  • Drag and Drop between two different QQuickWidgets

    6
    0 Votes
    6 Posts
    1k Views
    p3c0P
    Can you post the sample code that you created ? So that we can understand clearly.
  • 0 Votes
    3 Posts
    1k Views
    N
    Hi, sorry for the late reply. I looked at your code and no, it's not the effect i needed. What i needed was the rotation of the path view as if it were the mouse dragging it. I tried to obtain this effect by injecting the mouse movement into my application via c++ but it didn't give me the right feel so i went for a repeater item. I set the repeater to follow the arc i needed and acted upon its angle, thus obtaining the desired effect. Thankyou for your time
  • [SOLVED]HTML font face tag not work with QML Text

    3
    0 Votes
    3 Posts
    2k Views
    D
    It's work! Thank p3c0! Thank you very much!
  • QQuickWidget shows random shapes upon first run

    2
    0 Votes
    2 Posts
    928 Views
    O
    I recompiled my program with console enabled. It's showing this output when QQuickWidget is shown (no output directly after start): C:\Users\Vendelin\Downloads\Deployment>qq_pokus.exe OpenGL Warning: crPixelCopy3D: simply crMemcpy'ing from srcPtr to dstPtr OpenGL Warning: crPixelCopy3D: simply crMemcpy'ing from srcPtr to dstPtr OpenGL Warning: crPixelCopy3D: simply crMemcpy'ing from srcPtr to dstPtr OpenGL Warning: crPixelCopy3D: simply crMemcpy'ing from srcPtr to dstPtr OpenGL Warning: crPixelCopy3D: simply crMemcpy'ing from srcPtr to dstPtr OpenGL Warning: crPixelCopy3D: simply crMemcpy'ing from srcPtr to dstPtr OpenGL Warning: crPixelCopy3D: simply crMemcpy'ing from srcPtr to dstPtr OpenGL Warning: crPixelCopy3D: simply crMemcpy'ing from srcPtr to dstPtr err:[0xa04]:d3d:D:\tinderbox\add-4.3\src\VBox\Additions\WINNT\Graphics\Wine_new wined3d\resource.c 218: Resource 041F0FD0 is being unloaded while mapped. When it's run for the second time, it's showing QML scene properly, but prints the same error message.
  • VideoItem in qtgstreamer-plugins example has red hue

    2
    0 Votes
    2 Posts
    819 Views
    SGaistS
    Hi and welcome to devnet, This package not being part of the Qt distribution, you should rather contact the authors of QtGStreamer, you're more likely to get a quick answer there
  • QML Video Element OSX fail

    1
    0 Votes
    1 Posts
    760 Views
    No one has replied
  • Qtcanvas3d-WebGL-ThreeJS

    2
    0 Votes
    2 Posts
    1k Views
    G
    Does the youtube video help? (Try fast forwarding to 38 minutes, I think..) "https://www.youtube.com/watch?v=XvKDUWPA9O4":https://www.youtube.com/watch?v=XvKDUWPA9O4
  • [Solved] How to make full screen in qt quick?

    7
    0 Votes
    7 Posts
    32k Views
    C
    Alternatively, you can solve this using only qml; this has the advantage that the qml content is initially rendered in an already fullscreen window and signal onWindowStateChanged is not called twice: @ import QtQuick.Window 2.2 // Window.FullScreen import QtQuick.Controls 1.3 // ApplicationWindow // Note for OS X: using Window instead of ApplicationWindow only hides the dock (and shows it again when app is quit) ApplicationWindow { id: mainWindow visible: true // this is mandatory visibility: Window.FullScreen onWindowStateChanged: { console.log( "onWindowStateChanged (Window), state: " + windowState ); } } @
  • Right Way of Updating a QML File from C++

    3
    0 Votes
    3 Posts
    1k Views
    U
    [quote author="p3c0" date="1421902957"] Yes that is also a right way. For other approaches you can check "this":http://doc.qt.io/qt-5/qtqml-cppintegration-interactqmlfromcpp.html doc.[/quote] Thanks very much.
  • QML MediaPlayer and iOS

    7
    0 Votes
    7 Posts
    2k Views
    A
    On the bright side support for video on iOS with Quick may come in Qt 5.5, so stay tuned.
  • How do I enable/disable ANGLE?

    7
    0 Votes
    7 Posts
    8k Views
    O
    dxdiag both over Remote desktop and on the broken machine shows DirectX 11. My application isn't printing anything relevant to console. I also added this code: @ connect(this, &QQuickWidget::sceneGraphError, [this](QQuickWindow::SceneGraphError reason, const QString &msg) { QMessageBox::critical(this, "Error", msg); });@ and expected to get some error message on the computer with the broken graphics driver, but I get nothing. It looks like "QTBUG-36065":https://bugreports.qt.io/browse/QTBUG-36065 is still present in my case, although it's marked as fixed. I'd really like to show the user at least an error message when this happens.
  • 3rd Party JavaScript Libraries

    1
    0 Votes
    1 Posts
    425 Views
    No one has replied
  • Qt list elements quantity [solved]

    8
    0 Votes
    8 Posts
    2k Views
    p3c0P
    Just in case if someone came across a similar situation he/she may understand that this post has a solution.
  • QtQuick Control Q_INVOKABLE returning null

    5
    0 Votes
    5 Posts
    2k Views
    J
    Replying to share my personal experience with this issue. Changing the ownership of the instantiated object to "QQmlEngine::CppOwnership":http://doc.qt.io/qt-5/qqmlengine.html#ObjectOwnership-enum before returning it indeed fixes the issue. What is not very intuitive though is the fact that you have to change the ownership to CppOwnership even if the objectOwnership() method already returns CppOwnership. This gives something like: @QObject * MyClass::InvokableMethod ( ... ) { QObject * pObject = InstanciateObject( ... ); QQmlEngine::ObjectOwnership ow = engine->objectOwnership( pObject ); // Here, ow == QQmlEngine::CppOwnership engine->setObjectOwnership( pObject, QQmlEngine::CppOwnership ); return pObject; }@ The "setObjectOwnership()":http://doc.qt.io/qt-5/qqmlengine.html#setObjectOwnership and "objectOwnership()":http://doc.qt.io/qt-5/qqmlengine.html#objectOwnership methods seem to perform more stuff than just set and get a two-value property on the object, something that does not appear in the documentation. Anyway, thanks for the post.
  • ListView is not shown

    5
    0 Votes
    5 Posts
    1k Views
    P
    Try changing to... @Window { id: root width: 200 height: 200@ or maybe set/use the minimum/maximum width and height properties IDK but I think if you don't set the properties, they may default to 0
  • QQuickWidget is blank on other computers

    4
    0 Votes
    4 Posts
    1k Views
    JKSHJ
    [quote author="ondrejandrej" date="1421762292"]Can I avoid copying those files e. g. by adding them to resources?[/quote]Interesting idea; I've never tried putting official files in a resource before. You could try it, but I'm not sure if the LGPL license allows that. If you have the "Professional license":http://www.qt.io/download/ you could use the Qt Quick Compiler to convert your QML source code into your program binaries.
  • Embed QML Item in QWidget

    4
    0 Votes
    4 Posts
    3k Views
    JKSHJ
    Hi, QDeclarativeView is for Qt Quick 1. These are old technologies which are now deprecated. Use QQuickWidget + Qt Quick 2 instead. See "Porting QML Applications to Qt 5":http://doc.qt.io/qt-5/qtquick-porting-qt5.html for more info.
  • Where did the QSGRenderThread go ? (Qt5.4 - Xcode 6 Instruments)

    2
    0 Votes
    2 Posts
    1k Views
    JKSHJ
    Hi, I don't know why, but the Qt engineers do. You can find them at the "Interest mailing list":http://lists.qt-project.org/mailman/listinfo/interest (You need to subscribe first)
  • Error Quick

    3
    0 Votes
    3 Posts
    816 Views
    T
    yes, install apt-get install xserver-xorg-video-intel libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core [quote author="sierdzio" date="1421827439"]Do you have OpenGL drivers installed?[/quote]
  • Cannot assign object to list [SOLVED]

    4
    0 Votes
    4 Posts
    4k Views
    S
    Once again I shoot myself in the foot. I'm posting this for the benefit of everyone else since it was such a stupid thing that I did: qRegisterMetaType<QObject*>("QQuickitemLayer"); What's going on here (as far as I can tell) is that QObject* was bound to the name QQuickItemLayer in the Qt Meta Object system. The issue with this is that the subsequent QML elements are registered also using these same types. I know this is a vague explanation- but it boils down to the meta type system. Taking this line out in my code fixed the issue I was seeing. I'm writing a blogpost elsewhere to fully explain some of the things I tried since a lot of it is off topic. The reason I put this line of code in was that the QmlEngine was reporting that this was an issue in a console app. I thought I was being clever by providing this type (it silenced the console errors). However, it just caused a bigger issue.