Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.3k Posts
  • Change base font size depending upon language

    Solved
    2
    0 Votes
    2 Posts
    282 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
    249 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
    1k 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
    397 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
    293 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
    220 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
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    5 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    13 Views
    No one has replied
  • ListView with List Items arranged on Half Circle using QML

    Unsolved
    1
    0 Votes
    1 Posts
    186 Views
    No one has replied
  • 0 Votes
    1 Posts
    159 Views
    No one has replied
  • module "Qt.labs.qmlmodels" is not installed

    Unsolved
    1
    0 Votes
    1 Posts
    677 Views
    No one has replied
  • Comma Expressions Good or Bad?

    Unsolved
    2
    0 Votes
    2 Posts
    493 Views
    fcarneyF
    It looks like you can create dependencies in functions with a bit different syntax. It also looks like there is an implied return if the return keyword is not used: import QtQuick 2.15 import QtQuick.Window 2.15 import QtQuick.Controls 2.15 Window { width: 640 height: 480 visible: true title: qsTr("Property update with comma") // get warning saying "Do not use comma expressions. (M30)" readonly property var listStuff: checkbox.checked, [0,1,2,3,4,5] onListStuffChanged: { console.log("listStuff changed", listStuff) } readonly property var listStuff2: { checkbox.checked return [5,4,3,2,1,0] } onListStuff2Changed: { console.log("listStuff2 changed", listStuff2) } readonly property var listStuff3: { checkbox.checked; [0,1,2,3,2,1,0] } onListStuff3Changed: { console.log("listStuff3 changed", listStuff3) } CheckBox { id: checkbox } }
  • For DInt Data Type hh:mm:ss showing 0 value

    Unsolved
    14
    0 Votes
    14 Posts
    1k Views
    JonBJ
    @Neku I have suggested what you need to do to debug your situation. No more to say.
  • Canvas/QPainter bug

    Unsolved canvas qpainter zoom
    3
    0 Votes
    3 Posts
    2k Views
    P
    Hello, I encountered the same problem as you, did you solve it, it will be black or blue screen when zoomed in
  • StackLayout with lazy-loading

    Unsolved
    1
    0 Votes
    1 Posts
    322 Views
    No one has replied
  • This topic is deleted!

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