Skip to content
  • 0 Votes
    2 Posts
    273 Views
    C

    I have the exact same issue. Were you able to fix it?

  • 0 Votes
    16 Posts
    2k Views
    M

    Hi @dheerendra

    I think the issue was in NO_PLUGIN as were suggested by @Anumas here:
    https://forum.qt.io/post/802964

    Seems to be working fine with static library now. I marked that message as a solution.

  • 0 Votes
    12 Posts
    783 Views
    S

    Would i be viable to use qt widgets and just use qtquick for all the other widgets embedded into the qt widgets mainwindow or is this a bad idea?

  • 0 Votes
    2 Posts
    307 Views
    MarkkyboyM

    A total guess; Screen QML contains 'orientation' and 'primaryOrientation'.

    https://doc.qt.io/qt-5/qml-qtquick-window-screen.html#orientation-attached-prop

    I'm using Qt5.15, so can't offer any real insight. I assume the monitor you are using is able to /does contain an accelerometer and should be able to rotate either dynamically or by code.

  • 0 Votes
    3 Posts
    181 Views
    F

    @jsulm said in Compiling qtgraphicaleffects separately yields errors.:

    Is the source code you're building same version as your Qt?
    Please post errors as text.

    Think you for your reply.

    Is the source code you're building same version as your Qt?

    My qmake info:

    QMake version 3.1
    Using Qt version 5.12.5 in /home/lohand/t507/arm_qt5/lib

    Please post errors as text.

    I'm sorry about that. Here is the complete compiled output:

    lohand@t507:~/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtgraphicaleffects$ make -j8 cd src/ && ( test -e Makefile || /home/lohand/t507/OKT507-linux-sdk/out/t507/okt507/longan/buildroot/host/bin/qmake -o Makefile /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtgraphicaleffects/src/src.pro ) && make -f Makefile make[1]: Entering directory '/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtgraphicaleffects/src' cd effects/ && ( test -e Makefile || /home/lohand/t507/OKT507-linux-sdk/out/t507/okt507/longan/buildroot/host/bin/qmake -o Makefile /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtgraphicaleffects/src/effects/effects.pro ) && make -f Makefile make[2]: Entering directory '/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtgraphicaleffects/src/effects' ( test -e Makefile.effects_plugin || /home/lohand/t507/OKT507-linux-sdk/out/t507/okt507/longan/buildroot/host/bin/qmake -o Makefile.effects_plugin /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtgraphicaleffects/src/effects/effects_plugin.pro ) && make -f Makefile.effects_plugin cd private/ && ( test -e Makefile || /home/lohand/t507/OKT507-linux-sdk/out/t507/okt507/longan/buildroot/host/bin/qmake -o Makefile /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtgraphicaleffects/src/effects/private/private.pro ) && make -f Makefile make[3]: Entering directory '/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtgraphicaleffects/src/effects' rm -f libqtgraphicaleffectsplugin.so /home/lohand/t507/OKT507-linux-sdk/out/t507/okt507/longan/buildroot/host/bin/aarch64-linux-gnu-g++ --sysroot=/home/lohand/t507/OKT507-linux-sdk/out/t507/okt507/longan/buildroot/host/aarch64-buildroot-linux-gnu/sysroot -Wl,-O1 -fuse-ld=gold -Wl,--enable-new-dtags -shared -o libqtgraphicaleffectsplugin.so .obj/plugin.o .obj/qrc_qtgraphicaleffectsshaders.o -latomic /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtdeclarative/lib/libQt5Quick.so /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/lib/libQt5Gui.so /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtdeclarative/lib/libQt5Qml.so /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/lib/libQt5Network.so /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/lib/libQt5Core.so -lGL -lpthread -lrt -lpthread -ldl make[3]: Entering directory '/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtgraphicaleffects/src/effects/private' /home/lohand/t507/OKT507-linux-sdk/out/t507/okt507/longan/buildroot/host/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -DEGL_FBDEV -std=c++11 --sysroot=/home/lohand/t507/OKT507-linux-sdk/out/t507/okt507/longan/buildroot/host/aarch64-buildroot-linux-gnu/sysroot -O2 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -D_REENTRANT -fPIC -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtdeclarative/include/QtQuick/5.12.5 -I/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtdeclarative/include/QtQuick/5.12.5/QtQuick -I/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtdeclarative/include -I/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtdeclarative/include/QtQuick -I/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui/5.12.5 -I/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui/5.12.5/QtGui -I/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include -I/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui -I/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtdeclarative/include/QtQml/5.12.5 -I/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtdeclarative/include/QtQml/5.12.5/QtQml -I/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtdeclarative/include/QtQml -I/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtNetwork -I/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtCore/5.12.5 -I/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtCore/5.12.5/QtCore -I/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtCore -I.moc -I/home/lohand/t507/OKT507-linux-sdk/out/t507/okt507/longan/buildroot/host/mkspecs/devices/linux-buildroot-g++ -o .obj/qgfxshaderbuilder.o qgfxshaderbuilder.cpp /home/lohand/t507/OKT507-linux-sdk/out/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/7.4.1/../../../../aarch64-linux-gnu/bin/ld.gold: error: cannot find -lGL collect2: error: ld returned 1 exit status Makefile.effects_plugin:70: recipe for target '../../qml/QtGraphicalEffects/libqtgraphicaleffectsplugin.so' failed make[3]: *** [../../qml/QtGraphicalEffects/libqtgraphicaleffectsplugin.so] Error 1 make[3]: Leaving directory '/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtgraphicaleffects/src/effects' Makefile:45: recipe for target 'sub-effects_plugin-pro-make_first' failed make[2]: *** [sub-effects_plugin-pro-make_first] Error 2 make[2]: *** Waiting for unfinished jobs.... qgfxshaderbuilder.cpp: In constructor ‘QGfxShaderBuilder::QGfxShaderBuilder()’: qgfxshaderbuilder.cpp:68:20: error: aggregate ‘QOpenGLContext context’ has incomplete type and cannot be defined QOpenGLContext context; ^~~~~~~ qgfxshaderbuilder.cpp:81:50: error: incomplete type ‘QOpenGLContext’ used in nested name specifier QOpenGLContext *oldContext = QOpenGLContext::currentContext(); ^~~~~~~~~~~~~~ qgfxshaderbuilder.cpp:82:51: error: invalid use of incomplete type ‘class QOpenGLContext’ QSurface *oldSurface = oldContext ? oldContext->surface() : 0; ^~ In file included from /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui/qsurfaceformat.h:1:0, from /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui/../../src/gui/kernel/qsurface.h:45, from /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui/qsurface.h:1, from /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui/../../src/gui/kernel/qoffscreensurface.h:45, from /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui/qoffscreensurface.h:1, from /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui/QOffscreenSurface:1, from qgfxshaderbuilder.cpp:43: /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui/../../src/gui/kernel/qsurfaceformat.h:49:7: note: forward declaration of ‘class QOpenGLContext’ class QOpenGLContext; ^~~~~~~~~~~~~~ qgfxshaderbuilder.cpp:84:9: error: ‘QOpenGLFunctions’ was not declared in this scope QOpenGLFunctions *gl = context.functions(); ^~~~~~~~~~~~~~~~ qgfxshaderbuilder.cpp:84:9: note: suggested alternative: ‘QOpenGLContext’ QOpenGLFunctions *gl = context.functions(); ^~~~~~~~~~~~~~~~ QOpenGLContext qgfxshaderbuilder.cpp:84:27: error: ‘gl’ was not declared in this scope QOpenGLFunctions *gl = context.functions(); ^~ qgfxshaderbuilder.cpp:98:23: error: invalid use of incomplete type ‘class QOpenGLContext’ oldContext->makeCurrent(oldSurface); ^~ In file included from /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui/qsurfaceformat.h:1:0, from /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui/../../src/gui/kernel/qsurface.h:45, from /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui/qsurface.h:1, from /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui/../../src/gui/kernel/qoffscreensurface.h:45, from /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui/qoffscreensurface.h:1, from /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui/QOffscreenSurface:1, from qgfxshaderbuilder.cpp:43: /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui/../../src/gui/kernel/qsurfaceformat.h:49:7: note: forward declaration of ‘class QOpenGLContext’ class QOpenGLContext; ^~~~~~~~~~~~~~ Makefile:2159: recipe for target '.obj/qgfxshaderbuilder.o' failed make[3]: *** [.obj/qgfxshaderbuilder.o] Error 1 make[3]: Leaving directory '/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtgraphicaleffects/src/effects/private' Makefile:64: recipe for target 'sub-private-make_first' failed make[2]: *** [sub-private-make_first] Error 2 make[2]: Leaving directory '/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtgraphicaleffects/src/effects' Makefile:46: recipe for target 'sub-effects-make_first' failed make[1]: *** [sub-effects-make_first] Error 2 make[1]: Leaving directory '/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtgraphicaleffects/src' Makefile:47: recipe for target 'sub-src-make_first' failed make: *** [sub-src-make_first] Error 2
  • Text and emojies in QML

    Unsolved QML and Qt Quick
    4
    0 Votes
    4 Posts
    446 Views
    T

    @J-Hilk i did ... i checked the font used on windows by default with the console.log(text.font) and forced on linux to used it but was'nt better :/

  • Text and emojies in QML

    Unsolved QML and Qt Quick
    2
    0 Votes
    2 Posts
    205 Views
    sierdzioS

    Please reformat your post, it does not show up correctly on this forum. Most notably, the picture is missing :-)

  • 0 Votes
    2 Posts
    218 Views
    F
    I recompiled the "virtualkeyboard". And by copying the library files to the ARM development board in the following path. {Your QT source code path}/qtvirtualkeyboard/plugins/virtualkeyboard/libqtvirtualkeyboard_pinyin.so As shown in the figure below, I have added Chinese Pinyin.
    IMG_20240524_163312.jpg
  • 0 Votes
    2 Posts
    211 Views
    Y

    I have encountered a similar problem, which has not been resolved. However, your example does not illustrate this issue.I test the example ,when myModel = newModel,print myModel.length =0

  • 0 Votes
    1 Posts
    212 Views
    No one has replied
  • 0 Votes
    10 Posts
    826 Views
    T

    @GrecKo Dear GrecKo,
    in the qml_singleton.h should I change the word "Type" to "System", because my Particlesystem is called like that?
    Where have I to introduce my Hardcore_Entrymodel - is it the UnsafeArea or is it the ApplicationUI class?
    I tend to UnsafeArea=Hardcore_Entrymodel and to leave the names "ApplicationUI" and "Type##QmlSingleton", but I'm not sure ...

  • 1 Votes
    4 Posts
    614 Views
    J

    This will be fixed in the upcoming Qt 6.8 release, and is back-ported to 6.7.2. See https://bugreports.qt.io/browse/QTBUG-125006, which adds a check for the QT_FFMPEG_PROTOCOL_WHITELIST environment variable, which the user can set to override the whitelist with their own.

  • 0 Votes
    2 Posts
    342 Views
    B

    @ian28 the way you are doing it is how one would implement a new QML component in C++ that would tend to be purely used in QML - i.e. you wouldn't normally interact with it from the C++ side once it is created.

    If you wanted to continue with that sort of approach, it might be better to create the timer in QML and have that update the path of your Image.

    However a better fit might be to expose your "model" via a "singleton instance" (see qmlRegisterSingletonInstance). This is the more modern approach that is advised rather than using the older setContextProperty, but you will probably find more information out there about using setContextProperty. It's not massively different in principle and it might be easier for you to use the older approach in order to get started.

  • 0 Votes
    7 Posts
    1k Views
    J

    @jweb1 Resolved!

    Note: it was a resources folder problem. Thanks all

  • 0 Votes
    1 Posts
    161 Views
    No one has replied
  • 0 Votes
    1 Posts
    166 Views
    No one has replied
  • 0 Votes
    1 Posts
    192 Views
    No one has replied
  • 0 Votes
    4 Posts
    659 Views
    S

    @skinkie said in Fully offscreen QML rendering:

    Is it possible (like with a raspberry pi) to specify in the Linux cmdline directly that a certain HDMI-output must be always available, even when no screen is connected, to prevent the "No screens available" errors. Something like a non-hardware based dummy output would do too.

    I can answer the first question. You can specify video=HDMI-A-1:1280x720-24@50D to force the digital output on (notice the D in the end, e will work too). My current system makes that interlaced output, so it has some particularities.

    If you want interlacing in Qt, on EGLFS that would still need this bug+patch to be applied. Sadly...

    For question two. Still stumbling.

  • 0 Votes
    8 Posts
    1k Views
    JoeCFDJ

    @Tiny-Leaf
    Try the following code. The length of three segments should be same.

    drawLine(ctx, 50, 50, 150, 50); drawLine(ctx, 150, 50, 50, 50); drawLine(ctx, 150, 100, 50, 100); function drawLine(ctx, x1, y1, x2, y2) { ctx.beginPath() ctx.moveTo(x1, y1) ctx.lineTo(x2, y2) ctx.stroke() }

    BTW: you may somehow avoid to draw a line twice if possible. It is not efficient.

  • 0 Votes
    1 Posts
    126 Views
    No one has replied