Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • What is the best way to stream videos in QtQuick UI application?

    2
    0 Votes
    2 Posts
    595 Views
    M
    Hi mshefiti. Can't you just use "this":http://doc.qt.io/qt-5/qml-qtmultimedia-video.html
  • QT5.3.2 quick Camera

    1
    0 Votes
    1 Posts
    363 Views
    No one has replied
  • QThread signal to QML

    6
    0 Votes
    6 Posts
    2k Views
    M
    No that's fine. I do not have this problem. I was trying to help you figure out what was going wrong. Nice to hear you've solved it.
  • QQmlApplicationEngine and top - left border

    2
    0 Votes
    2 Posts
    525 Views
    p3c0P
    Hi, Since QQmlApplicationEngine can load Window/ApplicationWindow you can set x and y coordinates in the QML itself.
  • Change property more than one time in an qml depend on input variables

    16
    0 Votes
    16 Posts
    5k Views
    p3c0P
    Or may be this one @ function convert(pinsArray) { var all = "" for(var i=0;i<pinsArray.length;i++) all += (pinsArray[i]*1).toString() console.log(all,parseInt(all, 2)) } Component.onCompleted: { var boCodePin1 = false var boCodePin2 = false var boCodePin3 = false var boCodePin4 = true var arr = [boCodePin4,boCodePin3,boCodePin2,boCodePin1]; convert(arr) } @ seems the earlier post was deleted.
  • Dynamically change rectangle gradient

    5
    0 Votes
    5 Posts
    2k Views
    S
    I got the same trouble, how to dynamical adjust gradient.stops(insert/remove/clear)? I want to create a GradientColorPicker controls. tks lots
  • [Solved] QML LinearGradient along the x-axis

    12
    0 Votes
    12 Posts
    4k Views
    S
    Another question: how to insert, delete .... the Gradient.stops by javascript? I try every codes, but doesn't work T_T
  • Why is QtQuick creating multiple Open GL Render Contexts?

    2
    0 Votes
    2 Posts
    863 Views
    Q
    Additional info: Object creation call stack strace, retrived by gDEBugger, for Open GL Context 1: 0x62874bf3 - qwindowsd.dll 0x62874c96 - qwindowsd.dll 0x6287511d - qwindowsd.dll 0x628753f9 - qwindowsd.dll 0x6284a6ea - qwindowsd.dll 0x6284a71a - qwindowsd.dll 0x6284a610 - qwindowsd.dll 0x6284a688 - qwindowsd.dll ZN14QWindowPrivate6createEb - Qt5Guid.dll ZN7QWindow6createEv - Qt5Guid.dll ZN7QWindow10setVisibleEb - Qt5Guid.dll ZN24QQuickShaderEffectSource24scheduledUpdateCompletedEv - Qt5Quickd.dll ZN24QQuickShaderEffectSource24scheduledUpdateCompletedEv - Qt5Quickd.dll ZN24QQuickShaderEffectSource24scheduledUpdateCompletedEv - Qt5Quickd.dll ZN27QQmlFileSelectorInterceptor9interceptERK4QUrlN26QQmlAbstractUrlInterceptor8DataTypeE - Qt5Qmld.dll ZN20QQmlComponentPrivate8completeEP17QQmlEnginePrivatePNS_17ConstructionStateE - Qt5Qmld.dll ZN20QQmlComponentPrivate14completeCreateEv - Qt5Qmld.dll ZN13QQmlComponent14completeCreateEv - Qt5Qmld.dll ZN13QQmlComponent6createEP11QQmlContext - Qt5Qmld.dll ZN28QQmlApplicationEnginePrivate13_q_finishLoadEP7QObject - Qt5Qmld.dll ZN28QQmlApplicationEnginePrivate9startLoadERK4QUrlRK10QByteArrayb - Qt5Qmld.dll ZN21QQmlApplicationEngine4loadERK4QUrl - Qt5Qmld.dll 0x0040169d - DefaultQtQuick.exe 0x00402ac7 - DefaultQtQuick.exe 0x00402dcc - DefaultQtQuick.exe 0x004013dd - DefaultQtQuick.exe BaseThreadInitThunk - KERNEL32.DLL RtlTryAcquireSRWLockShared - ntdll.dll RtlTryAcquireSRWLockShared - ntdll.dll Object creation call stack strace, retrived by gDEBugger, for Open GL Context 2: 0x628738ab - qwindowsd.dll 0x62875e8d - qwindowsd.dll 0x628726d7 - qwindowsd.dll 0x6284a89f - qwindowsd.dll ZN14QOpenGLContext6createEv - Qt5Guid.dll ZN13QSGRenderLoop28handleContextCreationFailureEP12QQuickWindowb - Qt5Quickd.dll ZN12QQuickWindow9showEventEP10QShowEvent - Qt5Quickd.dll ZN7QWindow5eventEP6QEvent - Qt5Guid.dll ZN12QQuickWindow5eventEP6QEvent - Qt5Quickd.dll ZN23QCoreApplicationPrivate13notify_helperEP7QObjectP6QEvent - Qt5Cored.dll ZN16QCoreApplication6notifyEP7QObjectP6QEvent - Qt5Cored.dll ZN15QGuiApplication6notifyEP7QObjectP6QEvent - Qt5Guid.dll ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent - Qt5Cored.dll ZN18QOpenGLTimeMonitor11qt_metacallEN11QMetaObject4CallEiPPv - Qt5Guid.dll ZN7QWindow10setVisibleEb - Qt5Guid.dll ZN24QQuickShaderEffectSource24scheduledUpdateCompletedEv - Qt5Quickd.dll ZN24QQuickShaderEffectSource24scheduledUpdateCompletedEv - Qt5Quickd.dll ZN24QQuickShaderEffectSource24scheduledUpdateCompletedEv - Qt5Quickd.dll ZN27QQmlFileSelectorInterceptor9interceptERK4QUrlN26QQmlAbstractUrlInterceptor8DataTypeE - Qt5Qmld.dll ZN20QQmlComponentPrivate8completeEP17QQmlEnginePrivatePNS_17ConstructionStateE - Qt5Qmld.dll ZN20QQmlComponentPrivate14completeCreateEv - Qt5Qmld.dll ZN13QQmlComponent14completeCreateEv - Qt5Qmld.dll ZN13QQmlComponent6createEP11QQmlContext - Qt5Qmld.dll ZN28QQmlApplicationEnginePrivate13_q_finishLoadEP7QObject - Qt5Qmld.dll ZN28QQmlApplicationEnginePrivate9startLoadERK4QUrlRK10QByteArrayb - Qt5Qmld.dll ZN21QQmlApplicationEngine4loadERK4QUrl - Qt5Qmld.dll 0x0040169d - DefaultQtQuick.exe 0x00402ac7 - DefaultQtQuick.exe 0x00402dcc - DefaultQtQuick.exe 0x004013dd - DefaultQtQuick.exe BaseThreadInitThunk - KERNEL32.DLL RtlTryAcquireSRWLockShared - ntdll.dll RtlTryAcquireSRWLockShared - ntdll.dll
  • Can I get FPS from QQuickView?

    8
    0 Votes
    8 Posts
    4k Views
    D
    Here is how it can be done on the QML side: "FPSMonitor":https://github.com/rburchell/qmantle2/blob/master/FPSMonitor.qml. Not sure if this is the best option, but at least you can get a rough estimation of FPS.
  • Flickable contentY is set to 0 when change the size itself

    2
    0 Votes
    2 Posts
    712 Views
    M
    Can you possibly share a simple example that replicates this issue.
  • [SOLVED] How to create C++ object dynamically from within QML?

    9
    0 Votes
    9 Posts
    4k Views
    M
    I think this is solved now so can you please append [SOLVED] to the title. Thank you.
  • Erro with qt quick(no show correctly)

    14
    0 Votes
    14 Posts
    7k Views
    L
    This problem was corrected in Qt 5.4 http://blog.qt.digia.com/blog/2014/11/27/qt-weekly-21-dynamic-opengl-implementation-loading-in-qt-5-4/
  • Hide Cursor

    2
    0 Votes
    2 Posts
    1k Views
    A
    When running the application on main.cpp: QGuiApplication app(argc, argv); QApplication::setOverrideCursor(QCursor(Qt::BlankCursor));
  • QT5.3.2 quick camera

    1
    0 Votes
    1 Posts
    531 Views
    No one has replied
  • Border change in TextArea

    3
    0 Votes
    3 Posts
    3k Views
    T
    TextAreaStyle has no atкribute "border"(
  • Menu/ComboBox draw issues

    1
    0 Votes
    1 Posts
    467 Views
    No one has replied
  • [SOLVED] Problem with iOS app and QML Plugin.

    4
    1 Votes
    4 Posts
    96k Views
    shavS
    Hi everyone! At last I found the solution of my problem with static plugin for iOS. The solution is: set line to your plugin .pro file @ QMAKE_MOC_OPTIONS += -Muri=com.shav.picfection @ and you plugin .pro file must looks like: TEMPLATE = lib TARGET = PicfectionSDK QT += qml quick network ios { CONFIG += qt plugin c++11 static } else { CONFIG += qt plugin c++11 } TARGET = $qtLibraryTarget($TARGET) uri = com.shav.picfection QMAKE_MOC_OPTIONS += -Muri=com.shav.picfection #<----- This helped me to solve my problem. DESTDIR = com/shav/picfection OBJECTS_DIR = tmp/objects MOC_DIR = tmp/mocs SOURCES += picfectionsdk_plugin.cpp picfectionmanager.cpp Requests/picfectionnetworkmanager.cpp Requests/picfectionrequest.cpp Objects/Team/picfectionteam.cpp Objects/Project/picfectionproject.cpp Objects/Event/picfectionevent.cpp Objects/Event/picfectioneventdatas.cpp Objects/Event/picfectioneventdocument.cpp Objects/Event/picfectioneventuser.cpp HEADERS += picfectionsdk_plugin.h picfectionmanager.h Requests/picfectionnetworkmanager.h Requests/picfectionrequest.h Objects/Team/picfectionteam.h Objects/Project/picfectionproject.h Objects/Event/picfectionevent.h Objects/Event/picfectioneventdatas.h Objects/Event/picfectioneventdocument.h Objects/Event/picfectioneventuser.h DISTFILES = qmldir picfectionsdk.json !equals(PRO_FILE_PWD, $OUT_PWD) { copy_qmldir.target = $OUT_PWD/$DESTDIR/qmldir copy_qmldir.depends = $PRO_FILE_PWD/qmldir copy_qmldir.commands = $(COPY_FILE) "$replace(copy_qmldir.depends, /, $QMAKE_DIR_SEP)" "$replace(copy_qmldir.target, /, $QMAKE_DIR_SEP)" sourceQmlTypePath = $_PRO_FILE_PWD_/Picfection.qmltypes targetQmlTypePath = $OUT_PWD/$DESTDIR/Picfection.qmltypes copy_qmldir.commands += && $(COPY_FILE) \"$replace(sourceQmlTypePath, /, $QMAKE_DIR_SEP)\" \"$replace(targetQmlTypePath, /, $QMAKE_DIR_SEP)\" sourceQmlFilesPath = $PRO_FILE_PWD/MslQmlControllerItem.qml targetQmlFilesPath = $OUT_PWD/$DESTDIR/MslQmlControllerItem.qml copy_qmldir.commands += && $(COPY_FILE) "$replace(sourceQmlFilesPath, /, $QMAKE_DIR_SEP)" "$replace(targetQmlFilesPath, /, $QMAKE_DIR_SEP)" QMAKE_EXTRA_TARGETS += copy_qmldir PRE_TARGETDEPS += $copy_qmldir.target } qmldir.files = qmldir unix { installPath = $[QT_INSTALL_QML]/$replace(uri, \., /) qmldir.path = $installPath target.path = $installPath INSTALLS += target qmldir }
  • How to pass QString array from .cpp to string array in qml

    2
    0 Votes
    2 Posts
    2k Views
    O
    Hello and welcome, basically you can pass a C++ Object to Qt using the setContextProperty method. For further informations i would recommend you to check our this qt doc: http://doc.qt.io/qt-5/qtqml-cppintegration-contextproperties.html It should answer your question and explain it better than i could =) If you have got more questions you are free to ask here! Greetings
  • 0 Votes
    1 Posts
    592 Views
    No one has replied
  • ListView with TextInput delegate is very slow

    3
    0 Votes
    3 Posts
    850 Views
    J
    I don't know the cause of the slowdown, but as a tip I would suggest you simply use a Text item for the delegate, and add a Loader which only creates a and replaces it with a TextInput when the delegate is pressed.