Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. qtquick
    Log in to post

    • UNSOLVED Progress bar is not smooth
      QML and Qt Quick • qml qtquick progress bar • • Witc  

      18
      1
      Votes
      18
      Posts
      529
      Views

      Tried it on Qt 5.15, and it works perfectly
    • UNSOLVED How to emit Signal from nested QML page (by Loader) to python
      QML and Qt Quick • qtquick signal & slot • • Witc  

      3
      0
      Votes
      3
      Posts
      104
      Views

      You don't. C++ shouldn't connect to QML signals. Expose a slot/invokable function in a Python object that is accessible from QML and call that slot in QML.
    • UNSOLVED Qml Virtual Keyboard shows InputPanel without any keys
      Mobile and Embedded • qml qtquick keyboard virtualkeyboard embedded applic • • HesperZ  

      1
      0
      Votes
      1
      Posts
      85
      Views

      No one has replied

    • UNSOLVED Multiline String Formatting
      QML and Qt Quick • qml qtcreator qtquick string formatter • • stewythe1st  

      1
      0
      Votes
      1
      Posts
      147
      Views

      No one has replied

    • SOLVED QML Format
      Tools • qml qtcreator qtquick formatter • • stewythe1st  

      4
      1
      Votes
      4
      Posts
      192
      Views

      This is in regards to Qt5. As far as I can tell, this behavior is present on 5.12 and 5.15. As far as concrete examples and mimal examples, the snippet I provided above should suffice. Literally copy/paste that at the top of any QML file, and reformat and the extra lines will be added. Thank you for linking those bug reports. They are all related to Qt6 and report as fixed. Seems like qmlformat was just improved considerably in Qt6. Guess I'm just out of luck for Qt5. Perhaps I'll do as they say and try building a static Qt6 formatter from source and using that on Qt5...
    • UNSOLVED VoiceOver (iOS/Mac) won't acknowledge accessible selected property (Qt Quick)
      QML and Qt Quick • qtquick ios mac accessibility issue • • j.m.johnson  

      1
      0
      Votes
      1
      Posts
      85
      Views

      No one has replied

    • UNSOLVED How to resolve LNK2019 error obtained after initializing the web engine and writing code to load a web page?
      QtWebEngine • qtquick documentation webengineview lnk2019 • • gouneken  

      1
      0
      Votes
      1
      Posts
      100
      Views

      No one has replied

    • SOLVED How to write a QML extension from a custom C++ class?
      QML and Qt Quick • qtquick c++ qt extension • • gouneken  

      7
      0
      Votes
      7
      Posts
      226
      Views

      when I rerun, I am told that QtWebView cannot contain more than one item, so I guess I cannot save a c++ class in QtWebView, going through the doc I found that the c++ classes I needed had already been extended to the quick module. So, I'm going to use the c++ classes in this module instead. Thank you very much for your help.
    • UNSOLVED qml file problem using design studio
      QML and Qt Quick • qml qtquick qtdesignstudio • • imhs  

      1
      0
      Votes
      1
      Posts
      219
      Views

      No one has replied

    • How can I achieve 26 touch points
      QML and Qt Quick • qml qtquick qt quick qml + js drag problem • • pennyboya  

      2
      0
      Votes
      2
      Posts
      131
      Views

      Hi, Might be a silly idea (and I currently don't know the performance hit for that one) but why not have one mouse area per Text object ?
    • UNSOLVED Qt printing using html and QTextDocument
      General and Desktop • qtquick html qprinter pdf qtextdocument • • kuntio  

      7
      0
      Votes
      7
      Posts
      532
      Views

      syntax from documentation for border <width>px <border-style> <border-color> That's mean it should be px after border.
    • SOLVED project.exe does not launch
      QML and Qt Quick • qml qtquick windows 10 • • RLocksley  

      3
      1
      Votes
      3
      Posts
      219
      Views

      @RLocksley said in project.exe does not launch: windeployqt project.exe if that is the whole command you used, that you missed the --qmldir parameter https://doc.qt.io/qt-5/windows-deployment.html
    • SOLVED How to extend qml containers (Row or Column) in another file
      QML and Qt Quick • qtquick row • • alizadeh91  

      4
      0
      Votes
      4
      Posts
      144
      Views

      It's documented in the QML Reference : https://doc.qt.io/qt-5/qtqml-syntax-objectattributes.html#property-attributes
    • UNSOLVED QML plugin: how to export mixed C++ and QML content
      QML and Qt Quick • qml qtquick designer plugins qmltypes • • Morris83  

      1
      0
      Votes
      1
      Posts
      173
      Views

      No one has replied

    • SOLVED Qt 5.15.2 Raspberry Pi 4 cross-compile with CMake. 'module "QtQuick.Window" is not installed'
      General and Desktop • qtquick cmake qt5.15.2 raspberry pi 4 • • Fahad-Cattchi  

      2
      0
      Votes
      2
      Posts
      460
      Views

      On the Raspberry Pi, in the terminal before running my application, I had to run export QML2_IMPORT_PATH=/usr/local/qt5.15/qml and that fixed it. I put that line in my ~/.profile and it seems to have fixed it permanently. I no longer have to run the export command manually.
    • SOLVED State control Drawer or SplitView
      QML and Qt Quick • qml qtquick splitview drawer • • Mr MinimalEffort  

      2
      0
      Votes
      2
      Posts
      155
      Views

      I have figured this out, by using states and setting the parent. It's not particularly fluid but it works StateGroup { id: stateGroup states: [ State { name: "landscape" when: root.width >= 400 PropertyChanges { target: issueDetails parent: issueDetailsSplitViewContainer } PropertyChanges { target: issueDetailsSplitViewContainer visible: true } PropertyChanges { target: issueDetailsDrawer visible: false position: 0 } }, State { name: "portrait" when: root.width < 400 PropertyChanges { target: issueDetails parent: issueDetailsDrawerContainer } PropertyChanges { target: issueDetailsSplitViewContainer visible: false } } ] }
    • UNSOLVED Necessity of declaring library versions
      QML and Qt Quick • qml qtquick qt 6.1.3 • • Matthew0x  

      1
      0
      Votes
      1
      Posts
      153
      Views

      No one has replied

    • SOLVED Setting default Application ICON (taskbar, .exe etc.)
      QML and Qt Quick • qml qtquick qt 6.1.3 • • Matthew0x  

      3
      0
      Votes
      3
      Posts
      989
      Views

      @sierdzio It worked as you said. Thank you for your help. I wish that it was possible to put different icons into a resource file, to be able to call upon any of them at a time. I put the ico file into my project folder and called it from .pro (project) file with that single line of code. It wasn't necessary to call any sort of function of window decoration (perhaps I haven't observed the issue yet). However, I believe that it was necessary to convert that file into .ico, what is ... well... the whole point of SVG is scalability, so that they look the same on any sort of device. I don't understand why Microsoft would stick to that .ico "...ICO files contain one or more small images at multiple sizes and color depths, such that they may be scaled appropriately." Perhaps it makes sense in some way. I simply spent more time poking around HTML 5.
    • SOLVED Update a text object in Qml from C++
      QML and Qt Quick • qtquick • • coldspark29  

      3
      0
      Votes
      3
      Posts
      174
      Views

      Thanks, I just wanted to clarify my question, because I thought it was lacking details. With the help of the provided post, I managed to create an updater thread to update my values. :)
    • UNSOLVED QML Tree View Expand or collapse Even while clicking on the text or the anywhere on the row
      QML and Qt Quick • qml qt5 qtquick treeview treeview model • • vinaygopal  

      1
      0
      Votes
      1
      Posts
      221
      Views

      No one has replied

    • UNSOLVED Developing a Timeline in QML (Seeking an Idea)
      QML and Qt Quick • qml qtquick scene graph • • alizadeh91  

      1
      0
      Votes
      1
      Posts
      156
      Views

      No one has replied

    • UNSOLVED how do I reference "styles" from a related QtDS project in my QtQuick application?
      QML and Qt Quick • qml qtquick qtds • • alpartis  

      1
      0
      Votes
      1
      Posts
      131
      Views

      No one has replied

    • UNSOLVED qtquick settings set default value
      QML and Qt Quick • qtquick textfield settings binding loop qt.lab.settings • • jay mainpy  

      4
      0
      Votes
      4
      Posts
      245
      Views

      I just gave a example.You should read what is binding loop.It clearly says you have a binding loop. settings.extendExportFile is bound to textfieldId.text textfieldId.text is bound to settings.extendExportFile Whenever settings.extendExportFile changes which trigger a signal to change textfieldId.text and in turn this trigger a signal to change settings.extendExportFile.This will be happening in a loop, which is known as binding loop.
    • UNSOLVED Do I really have to deploy 700 files with my QML application?
      Installation and Deployment • qml qtquick deployment windeployqt dependencies • • David_S  

      11
      1
      Votes
      11
      Posts
      539
      Views

      @J-Hilk Thanks for the reply. This adds a bit of complexity to my WIX installer since I don't want to list all 700+ files individually. Do you know if there is anyway to deploy these files in a folder other than where the executable is located? I would like to dump all of the QT dependencies in one folder (which can have subfolders) but I need to be able to "blow away" all of the Qt related dependencies by deleting one directory while being confident that I didn't delete anything but Qt dependencies.
    • UNSOLVED Is it possible to embbed a 3dscene in qml Pane (Qt.QuickControl) type?
      QML and Qt Quick • qtquick qt3d qtquickcontrols • • ItzMeJP  

      4
      0
      Votes
      4
      Posts
      287
      Views

      @ItzMeJP said in Is it possible to embbed a 3dscene in qml Pane (Qt.QuickControl) type?: thank you, but it still crash my application. What crash? You never said anything about a crash ... Is there any problem regarding my main.cpp code? Not that I can see.
    • UNSOLVED Error: 'Failed to extract plugin meta data'
      QML and Qt Quick • qml qtquick pyside2 raspberrypi • • raphasauer  

      2
      0
      Votes
      2
      Posts
      1027
      Views

      @raphasauer I have the same issue. Could you solve it?
    • UNSOLVED Missing libraries QtQuick
      QML and Qt Quick • qtquick webengineview websocket • • Matthew0x  

      5
      0
      Votes
      5
      Posts
      406
      Views

      I think that I found my answer https://wiki.qt.io/Qt_6.0.0_Modules Not supported. Thanks for help. I guess I will have to try to rollback. I wanted to write a small simple app for (for now) my own use, but the functionalities seem to be pretty restricted on Qt 6.0 then...
    • UNSOLVED QtQuick Version 2.15 not installed with Qt 6.0.3
      Qt 6 • qml qtquick raspberrypi • • raphasauer  

      2
      1
      Votes
      2
      Posts
      697
      Views

      @raphasauer I also have this issue . creator 6.0.2, when open qml with designer, it said QtQuick2.15 not installed
    • SOLVED QtQuick TreeView
      Qt 6 • qtquick qt6 treeview porting • • 0...-5  

      4
      0
      Votes
      4
      Posts
      261
      Views

      Many thanks to everybody. I decided to make a backport to qt5.15
    • SOLVED Qt5Compat not installed
      General and Desktop • qtquick qt5compat • • chairman  

      6
      0
      Votes
      6
      Posts
      2472
      Views

      Thanks, it worked with C++ by adding below line in project.pro, unfortunately python project don't create this file. But incase anyone else has a python workaround please share. QT += core5compat
    • SOLVED Changing the graphic engine changes the way a path is drawn
      QML and Qt Quick • qml qtquick graphics engine dashed lines • • jeanmilost  

      2
      0
      Votes
      2
      Posts
      200
      Views

      So as nobody answered this question, I found a workaround which seems to resolve my issue. I changed the stroke width from 1 to 1.5. However this unfortunately doesn't explain what happened here, and why the ShapePath object behaves this way. I have my own idea about that: I think it's a kind of pen alignment, as in GDI+ (https://docs.microsoft.com/en-us/windows/win32/api/gdiplusenums/ne-gdiplusenums-penalignment), however I found absolutely no way to configure that. So below is my solution, which works correctly in all situations on my side: import QtQuick 2.15 import QtQuick.Window 2.15 import QtQuick.Controls 2.15 import QtQuick.Shapes 1.15 import QtGraphicalEffects 1.15 import QtQuick.Templates 2.15 as T /** * Dashed border *@author JMR */ T.Control { // advanced properties property real m_StrokeWidth: 1.5 property int m_Radius: 5 property string m_FillColor: "transparent" property string m_StrokeColor: "#bac1db" /** * Background rectangle */ Rectangle { // common properties anchors.fill: parent color: m_FillColor radius: m_Radius /** * Dashed outline shape */ Shape { // common properties id: shDashedBorder anchors.fill: parent anchors.margins: 0 //layer.enabled: true //layer.samples: 8 smooth: true clip: true /** * Dashed outline shape path */ ShapePath { // common properties fillColor: "transparent" strokeColor: m_StrokeColor strokeWidth: m_StrokeWidth strokeStyle: ShapePath.DashLine dashPattern: [5, 5] startX: m_Radius startY: 0 // path commands PathLine {x: shDashedBorder.width - m_Radius; y: 0;} PathQuad {x: shDashedBorder.width; y: m_Radius; controlX: shDashedBorder.width; controlY: 0;} PathLine {x: shDashedBorder.width; y: shDashedBorder.height - m_Radius;} PathQuad {x: shDashedBorder.width - m_Radius; y: shDashedBorder.height; controlX: shDashedBorder.width; controlY: shDashedBorder.height;} PathLine {x: m_Radius; y: shDashedBorder.height;} PathQuad {x: 0; y: shDashedBorder.height - m_Radius; controlX: 0; controlY: shDashedBorder.height;} PathLine {x: 0; y: m_Radius;} PathQuad {x: m_Radius; y: 0; controlX: 0; controlY: 0;} } } } }
    • UNSOLVED How could I optimize a scrolling (not scrollable) QtQuick Chart?
      QML and Qt Quick • qtquick charts optimization • • tague  

      2
      0
      Votes
      2
      Posts
      224
      Views

      @tague Are you currently updating every time a point is added? If so, I wondered if you could buffer the incoming data so that you do not update so frequently? Perhaps use a QTimer to control update frequency.
    • SOLVED Changing image colour programatically in QML
      QML and Qt Quick • qml qtquick qt5.9 • • BikashRDas  

      5
      0
      Votes
      5
      Posts
      1605
      Views

      Thanks every one for your reply. @fcarney The ColorOverlay is working fine for me. Thanks for the same.
    • UNSOLVED Copying contents of window from one to another?
      General and Desktop • qml qtquick framebuffer qopenglframebuf copy • • SourceSlayer  

      2
      0
      Votes
      2
      Posts
      268
      Views

      @SourceSlayer Did you figure out some solution for this ? I'm in need to the same thing.
    • UNSOLVED Cannot use WebRTC AudioCapture with WebEngineView connected to local server via WebKitSpeechRecognition
      Qt WebKit • qml qtquick webengine qtwebengineview qt 5.15.0 • • nodelogic  

      1
      0
      Votes
      1
      Posts
      399
      Views

      No one has replied

    • UNSOLVED Issue: Qt Creator can't find custom C++ QtQuick Components, but compilation still works
      QML and Qt Quick • qml qt creator qtquick qt designer qtquickcompiler • • tague  

      2
      0
      Votes
      2
      Posts
      510
      Views

      I've developed a hackish workaround - if you're frustrated by this issue too, this "fix" is ugly but might help in the short-term: I noticed that Qt Creator still recognizes the old qmlRegisterType function calls if they're invoked from main in a project. So naturally, I made a custom compiler step for qmake that generates a header file with all QML_ELEMENT-tagged classes registered in a function. First, make sure you've set up qmltypes in your project as usual - your QML_IMPORT_NAME and all that is set. Add to the bottom of MyProject.pro: type_registrar_unfucker.name = type_registrar_unfucker type_registrar_unfucker.input = TYPE_REGISTRAR_SOURCES type_registrar_unfucker.commands = python3 $$PWD/type_unfuck.py ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT} $$QML_IMPORT_NAME $$QML_IMPORT_MAJOR_VERSION type_registrar_unfucker.output = ${QMAKE_FILE_IN_BASE}.h type_registrar_unfucker.clean = ${QMAKE_FILE_IN_BASE}.h type_registrar_unfucker.variable_out = HEADERS QMAKE_EXTRA_COMPILERS += type_registrar_unfucker TYPE_REGISTRAR_SOURCES += $$OUT_PWD/myproject_metatypes.json Add as type_unfuck.py in your source directory: # type unfuck # ----------- # This python script deals with the issue of Qt Creator not being able to recognize element types # registered using 'QML_ELEMENT'. # # It does so by generating a header, 'myprojectname_metatypes.h'. # Include this header ONLY in main.cpp, and then call `registerTypes()` first thing in `main`. # Then, Qt Creator will stop whining. import sys import json source_path = sys.argv[1] dest_path = sys.argv[2] import_name = sys.argv[3] import_major = sys.argv[4] with open(source_path) as f: data = json.load(f) includes = ["QtQml"] types = [] for file in data: includes.append(file["inputFile"]) for type in file["classes"]: if "classInfos" in type and {"name":"QML.Element","value":"auto"} in type["classInfos"]: types.append(type["className"]) with open(dest_path, 'w') as f: for i in includes: f.write(f'#include <{i}>\n') f.write('void registerTypes() {\n') for t in types: f.write(f'\tqmlRegisterType<{t}>("{import_name}", {import_major}, 0, "{t}");\n') f.write('}\n') Then, just add #include <myproject_metatypes.h> to your project's main.cpp and invoke registerTypes(); immediately in your main function. Build your project, then click on Tools -> QML/JS -> Reset Code Model, and Qt Creator should now recognize your custom components correctly.
    • UNSOLVED How can i force the engine to call QQuickImageResponse::textureFactory.
      QML and Qt Quick • qml qtquick imageprovider andriod • • Sheep  

      1
      0
      Votes
      1
      Posts
      176
      Views

      No one has replied

    • UNSOLVED Problem with macdeplayqt and Qt3D
      QML and Qt Quick • qml qtquick qt3d macdeployqt renderer • • shav  

      7
      1
      Votes
      7
      Posts
      330
      Views

      Or you can fix the macdeployqt code and build it to replace your version. That way you benefit from all the file processing done during the deployment process.