Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.3k Posts
  • Am I the only one with issues on basic functionality of Qt Design Studio?

    Unsolved
    2
    0 Votes
    2 Posts
    249 Views
    SGaistS
    Hi and welcome to devnet, The forum is not the best place to discuss these issues as it's mainly a user forum. You might want to check the bug report system to see if there's already something that matches your issues. If not, you could consider opening feature requests regarding the points you are mentioning.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    18 Views
    No one has replied
  • Detected recursive rearrange

    Unsolved
    4
    0 Votes
    4 Posts
    623 Views
    SGaistS
    Hi, I think GammaRay might be useful to find that kind of things.
  • Cannot load pdf in the app works only for the single file

    Solved
    10
    0 Votes
    10 Posts
    980 Views
    R
    That means error so nothing is displayed. https://doc.qt.io/qt-6/qml-qtquick-image.html#status-prop If I use source: StandardPaths.writableLocation(StandardPaths.HomeLocation) + "/qtpdfbug/qtlogo.pdf" It works. While this works only if I use qml6 with file and not when I launch the app. source: "/home/user/qtpdfbug/qtlogo.pdf" Using this always work source: "file:///home/user/qtpdfbug/qtlogo.pdf"
  • Issue with Shadow Blur Rendering in MultiEffect (Qt 6.7.1)

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

    Solved
    2
    0 Votes
    2 Posts
    32 Views
    No one has replied
  • QML has vertical or horizontal separator control?

    6
    0 Votes
    6 Posts
    6k Views
    RokeJulianLockhartR
    From what I see, the vertical line is a QFrame element with VLine settings. Using stackoverflow.com/review/suggested-edits/36711790, that: separator_line = PyQt6.QtWidgets.QFrame() separator_line.setFrameShape(PyQt6.QtWidgets.QFrame.Shape.HLine) separator_line.setFrameShadow(PyQt6.QtWidgets.QFrame.Shadow.Sunken) ...seems to render in the correct orientation for me: Before [image: bf9500d5-93c8-4aaa-933e-abc512a4cf47.png] Afterward ...albeit invisibly (it should be between "Modify" and "Overflow"): [image: 39f1e90f-e68e-4e48-a36e-c1f28e37f364.png]
  • QML TextArea performance with large data buffers

    Unsolved
    6
    0 Votes
    6 Posts
    674 Views
    B
    @afalsa thanks for those links. I have only looked at the first one and skim read it, but it seems like they ended up with a very similar solution to mine. That is reassuring in the sense that there doesn't seem to be a much simpler approach that I missed. I don't recall finding that page when I had the issue, but I suspect I was grappling with it a year or two before that was written.
  • Why is setPreeditText not directly available in QML?

    Unsolved
    3
    0 Votes
    3 Posts
    295 Views
    jeremy_kJ
    According to the documentation, https://doc.qt.io/qt-5/qml-qtquick-virtualkeyboard-inputcontext.html#preeditText-prop: preeditText : string This property sets the pre-edit text. The property isn't marked read-only, indicating that an application can assign to it.
  • a generic qml label for display of an image and a text

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    SavizS
    @JoeCFD said in a generic qml label for display of an image and a text: any recommendations for making a generic qml label to display an image and a text? If by "image and text" you mean a label that displays an icon (e.g., SVG) alongside text, you can use the IconLabel type. While there is no official documentation for it, you can view its source code. It allows you to assign text, an icon, and even customize the layout. For example, this is how it is used in a Button: Button { id: control property real radius: 0 implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset, implicitContentWidth + leftPadding + rightPadding) implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset, implicitContentHeight + topPadding + bottomPadding) opacity: control.enabled ? 1 : 0.5 padding: 6 spacing: 6 icon.width: 24 icon.height: 24 contentItem: IconLabel { id: iconLabel spacing: control.spacing mirrored: control.mirrored display: control.display // Controls Layout icon: control.icon // Icon text: control.text // Text font: control.font } } If by "image" you mean PNG or other non-icon image types, your best option is to use an Image type alongside a Text or Label type within a layout. I don’t see any other straightforward approach.
  • 0 Votes
    9 Posts
    604 Views
    A
    I decided to follow Bob's suggestion to replace moveRows with removeRows followed by insertRows and it seemed to work out for me. Thank you all for the suggestions.
  • exclude item inside QML Qt Quick Control from interaction

    Unsolved
    3
    0 Votes
    3 Posts
    278 Views
    M
    Thank you, @GrecKo ! That helped a lot. Just adding it as you suggested didn't work, but in combination with the following on the control level works good. containmentMask: QtObject { function contains (point: point) : bool { return control.contentItem.contains(point) || control.indicator.contains(point) } }
  • qmlRegisterTypeSingleton with contextData error while using PySide6

    Solved
    9
    0 Votes
    9 Posts
    612 Views
    SGaistS
    You're welcome ! You know, inverting lines can happen quickly and innocuously :-) Anyway, now you're back on track.
  • Shadow Mapping not working after porting to Qt 6,8

    Solved
    6
    0 Votes
    6 Posts
    645 Views
    SGaistS
    Thanks for the feedback and bug reports !
  • Ripple effect on material style

    Unsolved qml c++ ripple linux qt quick
    3
    0 Votes
    3 Posts
    895 Views
    N
    I am also facing the same issue. Have you found any solution for this?
  • Regarding dynamic graph creation using Shape qml component.

    Unsolved
    1
    0 Votes
    1 Posts
    182 Views
    No one has replied
  • Passing model data from delegate Loader to component in TableView object.

    Unsolved
    12
    0 Votes
    12 Posts
    746 Views
    J
    @Bob64 Thank you, just using 'type' worked! I knew it would be something simple like this. And @GrecKo thanks for the tip, that looks like a better solution so ill definitely look into it.
  • Which class in Qt Virtual Keyboard handles hardware keyboard input processing?

    Unsolved
    2
    0 Votes
    2 Posts
    233 Views
    SGaistS
    Hi, AFAIK there's no such class. Qt Virtual Keyboard provides an on screen keyboard that is not tied to any hardware. What is your goal ?
  • Cura plugins + beginner Python + out dated QT= ishhh!

    Unsolved
    3
    0 Votes
    3 Posts
    361 Views
    F
    @SGaist Thanks for the reply. I forgot how qt was multi-platform/multi-os. But yeah you have right, I'm running on Windows 10. Now for the crash, it's pretty funny actually. After I've move qt/bin dll into Cura root folder and some Pyd/Pyi... I didn't remember which one, i've to create a kind of cura patch file for.. but anyway.... To say after i've modified cura, i've the same bug into PythonDemo and CuraPlugins. [image: 8b6e6274-f561-4058-9bd1-bb3eda473d9f.png] import os.path from UM.Application import Application from UM.PluginRegistry import PluginRegistry from cura.Stages.CuraStage import CuraStage from PyQt6.QtCore import QUrl #from PyQt6.QtWebEngineWidgets import QWebEngineView class FluiddStage(CuraStage): """Stage for web Interface""" #view = QWebEngineView() def __init__(self, parent = None): super().__init__(parent) Application.getInstance().engineCreatedSignal.connect(self._engineCreated) def _engineCreated(self): self.addDisplayComponent("menu", os.path.join(PluginRegistry.getInstance().getPluginPath("FluiddStage"), "FluiddMenu.qml")) self.addDisplayComponent("main", os.path.join(PluginRegistry.getInstance().getPluginPath("FluiddStage"), "FluiddMain.qml")) My first plugins crash was that I cannot import QWebEngineView and I cannot create QWebEngineView() class instance. Now with cura file patch, I can. Of course I cannot use view.show() it's crash the plugins. The second plugins crash was about QML file. I cannot import nothing, except maybe QtQuick/UM/Cura. And it's where is funny... I seem to have the same problem with my QML demo version since i try to QML the demo. I Cannot import QtWebEngine/QtWebView or whatever into QML file. it's crash demo and plugins. Does I miss something into init.py? Remark demo folder doesn't have.
  • QML Drag and Drop including reordering the C++ model

    Unsolved
    2
    0 Votes
    2 Posts
    297 Views
    M
    Here is a link to the full code: https://mega.nz/file/XQlQECqa#LxhaaqWAmvVyTEFLd3MtnMCnRcmU9glXgZWYC6yyrv4 Based on the article: https://raymii.org/s/tutorials/Qml_Drag_and_Drop_example_including_reordering_the_Cpp_Model.html