Skip to content
  • 0 Votes
    2 Posts
    65 Views
    jeremy_kJ

    I'm minimally familiar with Quick Layouts (anchors FTW!), but the documentation says:

    Likewise, when a vertical layout has its preferred height, all child items will have their preferred heights, and when a vertical layout has its maximum height, all child items will have their maximum heights. This strategy is applied regardless of what the individual stretch factors are. As a consequence of this, stretch factors will only determine the growth rate of child items between the preferredHeight and maximumHeight range.

    Setting Layout.preferredHeight, or the item's implicitHeight, enables use of the verticalStretchFactor.

  • 0 Votes
    1 Posts
    52 Views
    No one has replied
  • Hi all

    Unsolved Game Development
    10
    0 Votes
    10 Posts
    382 Views
    BondrusiekB

    @Joshika_Namani Which version of Qt do you use? I think that using Qt6 is a better option but here is a doc for Qt5 https://doc.qt.io/qt-5/qopenglwidget.html if you want to see.

  • 0 Votes
    1 Posts
    54 Views
    No one has replied
  • 0 Votes
    3 Posts
    93 Views
    C

    I forgot to mentioned this ,I am Using TextInputUnit as component ,
    here is the TextInputUnit.qml , i have added the Font.AllUppercase
    TextInput {
    id: textInput
    text: value
    focus: true
    anchors.top: parent.top
    anchors.left: parent.left
    anchors.bottom: parent.bottom
    anchors.leftMargin: 10
    anchors.right: unitsRect.left
    verticalAlignment: Text.AlignVCenter
    color: '#EBF4FF'
    font.family: 'Lato'
    font.pixelSize: 16
    font.capitalization: Font.AllUppercase

    selectByMouse: true

    // validator: validatorIn
    onEditingFinished: {
    root.textChanged()
    }
    readOnly: readonly
    }

    but still its not working . What will be the issue

  • 0 Votes
    1 Posts
    38 Views
    No one has replied
  • 0 Votes
    1 Posts
    80 Views
    No one has replied
  • 0 Votes
    1 Posts
    54 Views
    No one has replied
  • 0 Votes
    16 Posts
    661 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
    359 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
    131 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
    113 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
    232 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
    109 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
    117 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
    1 Posts
    84 Views
    No one has replied
  • 0 Votes
    1 Posts
    132 Views
    No one has replied
  • 0 Votes
    10 Posts
    516 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
    344 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
    165 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.