Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.1k Posts
  • Some logical reasons not to give up Qt

    Unsolved
    6
    1 Votes
    6 Posts
    594 Views
    D
    @ali-aydin said in Some logical reasons not to give up Qt: I want to give up Qt because every new thing in it is new challenge that waste time most of features not working well generally it made me crazy Then you should switch to Java and JavaFX. Writing Java code is IMHO much faster than c++ and you get the joy of the „newest“ sh*t in java UIs. There you can write fancy apps which do exhibit different errors on different platforms (sometimes depending on the used JVM as well), are horrible to debug and you can wait lightyears until some of them ever get fixed. All for free and no #ifdefs ;)
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    8 Views
  • ListElement: cannot use script for property value

    Unsolved listelement property
    2
    0 Votes
    2 Posts
    3k Views
    ODБOïO
    hi @Rohith you can remove the iconColour from your model and simply assign it directly Button { text: qsTr(name) implicitWidth: 162 implicitHeight: 162 iconColor: (themes.name === 'day') ? 'black' : 'white' onClicked: gridBtnClicked(name, index) } or put all your colors in an array then iconColor: myArrayOfColors[index] or if your model is too complicated you can use a c++ model and expose it to qml
  • Cannot align controls properly in layouts

    Solved layouts qml
    3
    0 Votes
    3 Posts
    2k Views
    A
    @ODБOï said in Cannot align controls properly in layouts: Layout.fillWidth: true This worked for me, thanks
  • QT/VisualStudio Assertion failed only when debug

    Unsolved
    9
    0 Votes
    9 Posts
    893 Views
    elicatE
    Good morning My project uses QtWebEngine. I don't think it's a windows graphics setting. Many forms are opened without errors even in debug but to some forms at the end of their loading the Assertion problem is issued. A specific form, opens without problems and then clicking on a tabs that opens a section of the form (therefore a jquery / boostrap action) produces the assertiveness error. The error reports the following library: libGLESv2.dll Assertion Failed I also tried to install a new version of Qt but I had other problems that led me to open another ticket Setting up Visual Studio 2019 for creating QT6 projects
  • how to run exe file

    Solved
    26
    0 Votes
    26 Posts
    3k Views
    ali-aydinA
    @J-Hilk yes it worked on the laptop and I moved it to pc and on the pc worked too thank you for your help
  • My custom C++ plugin is not being consumed by the qml test application

    Unsolved
    1
    0 Votes
    1 Posts
    139 Views
    No one has replied
  • Debug functions to assert which phase the render thread and main thread are in

    Unsolved
    4
    0 Votes
    4 Posts
    360 Views
    JarrodJ
    Better solution using metaObject(): constexpr auto kQtRenderThreadClassName = "QSGRenderThread"; bool util::thread::isQtRender() { Q_ASSERT(QThread::currentThread()); QString threadName { QThread::currentThread()->metaObject()->className() }; return threadName == kQtRenderThreadClassName; }
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    14 Views
    No one has replied
  • Graphics in Qt 6.0: QRhi, Qt Quick, Qt Quick 3D

    Unsolved
    1
    0 Votes
    1 Posts
    297 Views
    No one has replied
  • Change base font size depending upon language

    Solved
    2
    0 Votes
    2 Posts
    262 Views
    Ben SB
    I figured out what I can do to get this working. Here's what I did: I Copied my existing qtquickcontrols2.conf file to qtquickcontrols2_ja_JP.conf I modified that ja_JP.conf file to add this line at the bottom: Font\PointSize=13 In my .qrc file I added a Language Selector at the bottom: <!-- Japanese specific resources --> <qresource prefix="/" lang="ja"> <file alias="qtquickcontrols2.conf">qtquickcontrols2_ja_JP.conf</file> </qresource> This now has the font larger when I load up the app with Japanese set as the locale.
  • module "QtQuick.Enterprise.Controls" QTCreator cannot find this module

    Unsolved
    3
    0 Votes
    3 Posts
    234 Views
    J
    @issam-chorfa said in module "QtQuick.Enterprise.Controls" QTCreator cannot find this module: Hello All, i would like to create a menu that displays several menu items along an arc. I have seen that i can use the PieMenu but it look like that i need a commercial licence for it ? Because it should be a part of QtQuick.Enterprise.Controls Any idea is it open source or i have to buy a licence. Thanks. Best Regards issam CHORFA Your question should be clearer
  • qml: Error: SSL Sockets are not supported on this platform.

    Solved qml ssl sockets
    5
    0 Votes
    5 Posts
    897 Views
    S
    @SGaist Yeah I ended up setting environment variables to point to the OpenSSL install inside of Qt. That ended up solving my problems.
  • CMAKE can't add qml file

    Unsolved cmake qml resou
    1
    0 Votes
    1 Posts
    387 Views
    No one has replied
  • Error while building/deploying project map (kit: Android Qt 5.15.2 Clang Multi-Abi)

    Unsolved
    3
    0 Votes
    3 Posts
    3k Views
    T
    Thank you for hepling JoeCFD. Gradle problem was solved I used jdk-11 as JDK also I used ndk-r21e as NDK also Android package built successfully , .apk file is successfully istalled on the device , but it opens to an gray usage instead of the map :disappointed_face: . Can you help me ? Here is screen picture below. [image: 4075b026-1b15-4c03-83ab-6e6663e281fe.jpg] Here is also issues picture and main.cpp file picture below. [image: 3f8a4a83-37d4-4957-8a0e-d8c5c031a8a1.png] [image: 6d763b15-6a8f-4e4e-b574-b7471615c589.png] Here is also Android Device Config picture below. [image: bc67b7d8-6146-462e-bccb-c594641437c4.png] Here is Compile output below: 14:18:31: Running steps for project map_1... 14:18:31: Starting: "C:\Android\android-ndk-r21e\prebuilt\windows-x86_64\bin\make.exe" clean -j8 C:/Android/android-ndk-r21e/prebuilt/windows-x86_64/bin/make -f Makefile.Arm64-v8a clean C:/Android/android-ndk-r21e/prebuilt/windows-x86_64/bin/make -f Makefile.Armeabi-v7a clean C:/Android/android-ndk-r21e/prebuilt/windows-x86_64/bin/make -f Makefile.X86 clean rmdir /s /q C:\Users\h-tkoka\Documents\build-map_1-Android_Qt_5_15_2_Clang_Multi_Abi-Debug\android-build make[1]: Entering directory 'C:/Users/h-/Documents/build-map_1-Android_Qt_5_15_2_Clang_Multi_Abi-Debug' del arm64-v8a\qrc_qml.cpp arm64-v8a\qrc_Resources.cpp make[1]: Entering directory 'C:/Users/h/Documents/build-map_1-Android_Qt_5_15_2_Clang_Multi_Abi-Debug' del armeabi-v7a\qrc_qml.cpp armeabi-v7a\qrc_Resources.cpp del arm64-v8a\moc_predefs.h make[1]: Entering directory 'C:/Users/h/Documents/build-map_1-Android_Qt_5_15_2_Clang_Multi_Abi-Debug' del x86\qrc_qml.cpp x86\qrc_Resources.cpp del armeabi-v7a\moc_predefs.h Sistem belirtilen dosyay bulamyor. make: *** [Makefile:523: android-build-distclean] Error 2 make: *** Waiting for unfinished jobs.... del x86\moc_predefs.h del arm64-v8a\main.obj arm64-v8a\qrc_qml.obj arm64-v8a\qrc_Resources.obj del armeabi-v7a\main.obj armeabi-v7a\qrc_qml.obj armeabi-v7a\qrc_Resources.obj del x86\main.obj x86\qrc_qml.obj x86\qrc_Resources.obj del *~ core *.core del *~ core *.core del *~ core *.core make[1]: Leaving directory 'C:/Users/h/Documents/build-map_1-Android_Qt_5_15_2_Clang_Multi_Abi-Debug' make[1]: Leaving directory 'C:/Users/h/Documents/build-map_1-Android_Qt_5_15_2_Clang_Multi_Abi-Debug' make[1]: Leaving directory 'C:/Users/h/Documents/build-map_1-Android_Qt_5_15_2_Clang_Multi_Abi-Debug' Could Not Find C:\Users\h\Documents\build-map_1-Android_Qt_5_15_2_Clang_Multi_Abi-Debug\arm64-v8a\qrc_qml.cpp Could Not Find C:\Users\h\Documents\build-map_1-Android_Qt_5_15_2_Clang_Multi_Abi-Debug\armeabi-v7a\qrc_qml.cpp Could Not Find C:\Users\h\Documents\build-map_1-Android_Qt_5_15_2_Clang_Multi_Abi-Debug\arm64-v8a\moc_predefs.h Could Not Find C:\Users\h\Documents\build-map_1-Android_Qt_5_15_2_Clang_Multi_Abi-Debug\x86\qrc_qml.cpp Could Not Find C:\Users\h\Documents\build-map_1-Android_Qt_5_15_2_Clang_Multi_Abi-Debug\armeabi-v7a\moc_predefs.h Could Not Find C:\Users\h\Documents\build-map_1-Android_Qt_5_15_2_Clang_Multi_Abi-Debug\x86\moc_predefs.h Could Not Find C:\Users\h\Documents\build-map_1-Android_Qt_5_15_2_Clang_Multi_Abi-Debug\arm64-v8a\main.obj Could Not Find C:\Users\h\Documents\build-map_1-Android_Qt_5_15_2_Clang_Multi_Abi-Debug\armeabi-v7a\main.obj Could Not Find C:\Users\h\Documents\build-map_1-Android_Qt_5_15_2_Clang_Multi_Abi-Debug\x86\main.obj Could Not Find C:\Users\h\Documents\build-map_1-Android_Qt_5_15_2_Clang_Multi_Abi-Debug*~ Could Not Find C:\Users\h\Documents\build-map_1-Android_Qt_5_15_2_Clang_Multi_Abi-Debug*~ Could Not Find C:\Users\h\Documents\build-map_1-Android_Qt_5_15_2_Clang_Multi_Abi-Debug*~ 14:18:36: The process "C:\Android\android-ndk-r21e\prebuilt\windows-x86_64\bin\make.exe" exited with code 2. 14:18:36: Starting: "C:\Qt\5.15.2\android\bin\qmake.exe" C:\Users\h\Documents\map_1\map_1.pro -spec android-clang "CONFIG+=debug" "CONFIG+=qml_debug" ANDROID_ABIS="armeabi-v7a" Project MESSAGE: ArcGIS Runtime for Android (arm64-v8a) Project MESSAGE: Version 100.14.1 Project MESSAGE: ArcGIS Runtime for Android (arm64-v8a) Project MESSAGE: Version 100.14.1 Project MESSAGE: ArcGIS Runtime for Android (armeabi-v7a) Project MESSAGE: Version 100.14.1 Project MESSAGE: ArcGIS Runtime for Android (x86) Project MESSAGE: Version 100.14.1 14:18:39: The process "C:\Qt\5.15.2\android\bin\qmake.exe" exited normally. 14:18:39: Starting: "C:\Android\android-ndk-r21e\prebuilt\windows-x86_64\bin\make.exe" -f C:/Users/h-tkoka/Documents/build-map_1-Android_Qt_5_15_2_Clang_Multi_Abi-Debug/Makefile qmake_all make: Nothing to be done for 'qmake_all'. 14:18:40: The process "C:\Android\android-ndk-r21e\prebuilt\windows-x86_64\bin\make.exe" exited normally. 14:18:40: Starting: "C:\Android\android-ndk-r21e\prebuilt\windows-x86_64\bin\make.exe" -j8 C:/Android/android-ndk-r21e/prebuilt/windows-x86_64/bin/make -f Makefile.Arm64-v8a all C:/Android/android-ndk-r21e/prebuilt/windows-x86_64/bin/make -f Makefile.Armeabi-v7a all C:/Android/android-ndk-r21e/prebuilt/windows-x86_64/bin/make -f Makefile.X86 all if not exist C:\Users\h-tkoka\Documents\build-map_1-Android_Qt_5_15_2_Clang_Multi_Abi-Debug\android-build\libs mkdir C:\Users\h\Documents\build-map_1-Android_Qt_5_15_2_Clang_Multi_Abi-Debug\android-build\libs & if not exist C:\Users\h-tkoka\Documents\build-map_1-Android_Qt_5_15_2_Clang_Multi_Abi-Debug\android-build\libs exit 1 ....... BUİLD SUCCESSFUL in 2m 36s 26 actionable tasks: 26 executed Android package built successfully in 293.599 ms. -- File: C:/Users/h-tkoka/Documents/build-map_1-Android_Qt_5_15_2_Clang_Multi_Abi-Debug/android-build//build/outputs/apk/debug/android-build-debug.apk 14:23:59: The process "C:\Qt\5.15.2\android\bin\androiddeployqt.exe" exited normally. 14:23:59: Elapsed time: 05:28.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    14 Views
    No one has replied
  • How to inspect binding on property?

    Unsolved
    2
    0 Votes
    2 Posts
    274 Views
    A
    @fcarney It looks like you can inspect bindings using KDAB's GammaRay
  • How to add margins to Overlay?

    Unsolved
    1
    0 Votes
    1 Posts
    214 Views
    No one has replied
  • Deploy problem with QtQuick.Controls 2.0

    Solved
    9
    0 Votes
    9 Posts
    5k Views
    A
    @Galbarad , thanks for the sample folders layout - it helped me to partially resolve the similar issue with missing QtQuick.Layouts (like "module "QtQuick.Layouts" is not installed"). However doing this manually is too tedious, so I'd vote for windeployqt.exe which does its job (in Qt5.15.5) quite good (especially after you limit the copied modules with the options).
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    12 Views
    No one has replied