Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.3k Posts
  • QML Multiple modules

    Solved
    2
    0 Votes
    2 Posts
    651 Views
    R
    I finally got it working. I am not sure what made things start working but here is what I now have. I can now instantiate DataProcess in my main.qml and it will respond to signals from main.qml and do it's thing. Project root (directory) CMakeLists.txt main.qml main.cpp importdata (directory) CMakeLists.txt DataProcess.qml importdata.h import data.cpp The main CMakeLists.txt has the following added. add_subdirectory(importdata) target_link_libraries(FlightLogbook PRIVATE import_moduleplugin) The importdata CMakeLists.txt is # CMakeLists.txt to build import backend. qt_add_library(import_module STATIC) qt6_add_qml_module(import_module URI importdata VERSION 1.0 QML_FILES DataProcess.qml SOURCES importdata.h importdata.cpp ) in main.cpp I added these items. #include <QtQml/QQmlExtensionPlugin> // Plugins Q_IMPORT_QML_PLUGIN(importdataPlugin) before the int main(...) In main.qml I could then do import importdata and in the body DataProcess { id: someid }
  • Qt Approved Directory layout convention

    Unsolved
    1
    0 Votes
    1 Posts
    140 Views
    No one has replied
  • Connections does not connect

    Solved
    12
    0 Votes
    12 Posts
    1k Views
    R
    @fcarney It's the simple things that get you. So the signal name starts with a lower case letter (I got dinged for that by QML) but when I use it I must make it upper case for the signal's first letter! Arghh. I reworked my testing project based on having to instantiate the additional QML files and this time the signal worked but I see that I did type it as an uppercase letter as onTestSignal so it worked. Thank you for pointing that out as I never would have caught it.
  • How to print a part of an Item?

    Unsolved
    7
    0 Votes
    7 Posts
    460 Views
    sierdzioS
    You can also call grabToImage on an Item that you manually set to correct size.
  • Button Segmentation fault Qt 6.3.1

    Unsolved
    6
    0 Votes
    6 Posts
    925 Views
    J
    Any updates to this bug? I'm experiencing it in 6.4 only in debugger mode when I press F5 which makes it so impossible to debug the application
  • Delay function

    Unsolved
    6
    0 Votes
    6 Posts
    736 Views
    sierdzioS
    Just throw in await sleep(1); at the end of your JS code, then.
  • Resolution problem

    Solved
    2
    0 Votes
    2 Posts
    232 Views
    JKSHJ
    Hi, and welcome! @saivineeth said in Resolution problem: When i have run the code then the screen is not coming in full screen If you want the window to be fullscreen, call showFullScreen() if i do maximize then it is coming full screen If you want the window to be maximized, call showMaximized()
  • Cannot assign to non-existent property "..."

    Solved
    11
    0 Votes
    11 Posts
    3k Views
    GrecKoG
    The import versions have nothing to do with it. Are you using QRC to embed your .qml files? Do both file are included in the QRC? At the same path?
  • QUUid in Qml

    Unsolved
    1
    0 Votes
    1 Posts
    366 Views
    No one has replied
  • Creating interface for terminal

    Unsolved
    3
    0 Votes
    3 Posts
    320 Views
    P
    In QML, i'm using ScrollView along the TextArea to view the input commands and output. I'm facing two problems here: The TextArea doesn't scroll down automatically, i want the ScrollView to show me the latest output so that i doesn't have to scroll down manually to see it. I'm unable to change the TextArea background color. The background I want to be transparent so that it reflects the main windows background. ScrollView { id: view anchors.fill: parent TextArea { id: outputTxt color: "black" readOnly: true selectByMouse: true text: "TextArea\n...\n...\n...\n...\n...\n...\n...\n...\n...\n...\n...\n...\n...\n...\n...\n...\n...\n...\n...\n...\n" anchors.fill: parent } } [image: 3e7e8086-937b-4d31-810f-b2b80d4d683b.PNG]
  • How can I select a string from a list and transfer it to another QML?

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

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • How to show tooltip over custom QQuickPaintedItem?

    Unsolved
    1
    0 Votes
    1 Posts
    157 Views
    No one has replied
  • Error while building/deploying project on ios

    11
    1 Votes
    11 Posts
    10k Views
    Q
    Restarting the target Device worked for me. However, to delete any previously installed Application, delete it via XCode and not manually from the device {Delete App} and then restart. If already deleted manually, simply restart the target device. Tested on Qt 5.15.9 and iPad 6th gen and OS 14.0
  • Usings enums as the return type of a function, does not work in qml

    Unsolved
    4
    0 Votes
    4 Posts
    870 Views
    sierdzioS
    I meant Q_DECLARE_METATYPE(application::BookOperationStatus) but it probably does not apply in this case.
  • Adding SVG to resource with alias and referencing in QML

    Solved
    33
    0 Votes
    33 Posts
    6k Views
    JoeCFDJ
    Create at least two qrc files: one for images and one for qml. Better not to mix them up.
  • what' the deference between QQmlEngineExtensionPlugin and QQmlExtensionPlugin

    Unsolved
    3
    0 Votes
    3 Posts
    377 Views
    C
    thank you.
  • How to make always on top ?

    Solved
    6
    0 Votes
    6 Posts
    1k Views
    SPlattenS
    @J-Hilk , thank you, I will experiment
  • How to import a file?

    Unsolved
    1
    0 Votes
    1 Posts
    156 Views
    No one has replied
  • I cannot run EBike Design example because of quickstudiocomponentsplugin.dll

    Unsolved
    2
    0 Votes
    2 Posts
    257 Views
    J
    I could solve the problem by going back to QT 5.15.2 coming from 6.3.2. However the example still does not work out of the box. All QtQuick imports miss version numbers and Screen01 is not found.