Skip to content
  • We are ready to work on any QT/QML projects

    Unsolved Jobs qtquick qt5 c++ qt qml components
    1
    0 Votes
    1 Posts
    695 Views
    No one has replied
  • 0 Votes
    6 Posts
    2k Views
    ODБOïO
    @texasRanger said in ui.qml text object needs to be edited from another .qml file: he ui.qml file it updates in real time how do you show it on the screen ? with qmlscene tool ? if you set textItem.text : "Hello World" inside Display.qml and show it with qmlscene you will see "Hello World". but if you show DisplayForm.ui.qml you will still see "Text"
  • how to make a reservation seat in qml ?

    Unsolved QML and Qt Quick qtquick qml c++
    3
    0 Votes
    3 Posts
    394 Views
    Q
    @sierdzio thank you :))
  • 0 Votes
    2 Posts
    635 Views
    I
    @kdabros Hi! Did you manage to make a qmake based project for a VST plugin that you would like to share? I was just searching the forum for an example of that and your post was the closest thing I could find! Thank you, Ilias
  • Display device's IP address

    Solved QML and Qt Quick qml qtquick network
    3
    0 Votes
    3 Posts
    2k Views
    lopeztelL
    @sierdzio thanks a lot for the pointer and example document, I will look into this
  • 0 Votes
    4 Posts
    1k Views
    P
    @Christian-Ehrlicher : I created a bug report https://bugreports.qt.io/browse/QTBUG-80916 with a minimal viable example.
  • 0 Votes
    2 Posts
    1k Views
    K
    'Client vertex and index arrays - all vertex array attribute and element array index pointers must refer to buffer objects. The default vertex array object (the name zero) is also deprecated. Calling VertexAttribPointer when no buffer object or no vertex array object is bound will generate an INVALID_- OPERATION error, as will calling any array drawing command when no vertex array object is bound.' source: https://www.khronos.org/registry/OpenGL/specs/gl/glspec33.core.pdf page 344
  • Qml resuable component best practice

    Unsolved QML and Qt Quick qml qtquick
    5
    0 Votes
    5 Posts
    529 Views
    fcarneyF
    @VInay123 said in Qml resuable component best practice: implement logic for text edits in all 3 objects You can put redundant/common logic in a separate js file that is imported in each qml file that it is needed. That should help reduce the logic footprint.
  • Simultaneous mousearea drag event

    Solved QML and Qt Quick drag mousearea qml multipointtouch qtquick
    2
    0 Votes
    2 Posts
    638 Views
    D
    I finally succeed to create this using 2 MultiPointTouchArea but I had to write drag function on touchUpdated event. Here is my code for one drag area: import QtQuick 2.0 Item{ id: joystick width: 100 height: 500 Rectangle{ id: joystickPad height: 50 width: 100 MultiPointTouchArea{ property var offset: null anchors.fill:parent minimumTouchPoints: 1 maximumTouchPoints: 1 function dragMove(point) { if (point) { var position = joystick.mapFromItem(joystickPad, point.x, point.y); /* Change y axis */ if((position.y - offset.y) < 0) { /* Do not go on top of drag area */ joystickPad.y = 0; } else { if((position.y - offset.y) > (joystick.height-joystickPad.height)) { /* Do not go below of drag area */ joystickPad.y = (joystick.height-joystickPad.height); } else { joystickPad.y = position.y - offset.y; } } } } onPressed: { var point = touchPoints[0]; offset = Qt.point(point.x, point.y); } onTouchUpdated: { var point = touchPoints[0]; dragMove(point); } onReleased: { //Reset position joystickPad.x = (joystick.width/2 - joystickPad.width/2) joystickPad.y = (joystick.height/2 - joystickPad.height/2) } } } }
  • scalling an object smoothly over time

    Solved QML and Qt Quick qml animation qtquick behavior
    3
    0 Votes
    3 Posts
    643 Views
    ODБOïO
    hi @newbisoso said in scalling an object smoothly over time: pulses ones every second that is because you have an interval of 1000ms on the Timer, reducing the interval will make transition smoother but what @J-Hill suggested is probably more suited.
  • 0 Votes
    10 Posts
    8k Views
    C
    @J.Hilk Hey, Thank you for all of your help. Solved the problem thanks to you! If there is anyone facing the same issue, solved like this, Created a source file named "restarter" restarter.h #ifndef RESTARTER_H #define RESTARTER_H #include <QObject> class Restarter : public QObject { Q_OBJECT public: explicit Restarter(QObject *parent = nullptr); Q_INVOKABLE void makeRestart(); signals: public slots: }; #endif // RESTARTER_H restarter.cpp (note: my application works as a service named "myservice" on system, so I can not restart it as restarting a regular application.) #include "restarter.h" #include <QProcess> Restarter::Restarter(QObject *parent) : QObject (parent) { } void Restarter::makeRestart() { QProcess::execute("sudo service myservice restart"); } If your application works NOT AS A SERVICE, BUT AN APPLICATION, restarter.cpp #include "restarter.h" #include <QApplication> #include <QProcess> Restarter::Restarter(QObject *parent) : QObject (parent) { } void Restarter::makeRestart() { qApp->quit(); QProcess::startDetached(qApp->arguments()[0], qApp->arguments()); //application restart } You need to register "restarter.cpp" as a QML registery (I know, stupid sentence) So you need to insert these lines in main.cpp #include "restarter.h" qmlRegisterType<Restarter>("closx.restarter", 1, 0, "Restarter"); and use it on your QML file: import closx.restarter 1.0 Restarter { id:restarter } Rectangle{ id: restartbg width: 120 height: 70 radius: 8 color:"black" anchors.centerIn: parent z:344 Text{ anchors.centerIn: parent text:qsTr("Restart") + mytrans.emptyString font.family:GSystem.myriadproita.name font.pixelSize: 18 color: "white" } MouseArea{ anchors.fill: parent onClicked: { restarter.makeRestart() } onPressed: { restartbg.color = "#1c1c1c" } onReleased: { restartbg.color = "black" } } } Again, thanks to @LeLev and @J-Hilk for everything.
  • Property of object is not a function

    Solved QML and Qt Quick mqtt qml qtquick qtcharts
    6
    0 Votes
    6 Posts
    14k Views
    fcarneyF
    @lopeztel said in Property of object is not a function: This is what happens when you spend hours staring at the screen ... Sometimes when you have had too much to think you need a break and coffee.
  • 0 Votes
    3 Posts
    2k Views
    S
    Solved the issue by upgrading Qt from 5.5 to 5.9.
  • 0 Votes
    13 Posts
    2k Views
    C
    @KroMignon Hey! I forgot to answer to you! Did not meant to be rude and sorry for that :( Conclusion: I gave some tries with your suggest and lots of other stuff on internet, but failed :D So I have created a "Restart the system to apply all the language changes" screen and a "restart/cancel" choice on a language change state. I guess it will be okay even if it wont be "real-time" :P Good Work!
  • 0 Votes
    3 Posts
    810 Views
    C
    @KroMignon LOVE YOU! Thank you very much, worked w/out problems, and made me understand my mistake. note: Needed to update .ts file and release .qm file after changing code.
  • 0 Votes
    7 Posts
    6k Views
    J.HilkJ
    @SGaist thanks I‘ll bookmark that as well I was just googleing qtcharts source and took the firts link 🙈
  • 0 Votes
    15 Posts
    7k Views
    P
    i made a script that fetch IP addresses and save them to QList and now i want to show buttons as many as the sizeof the QList in qml and i couldn't use the QAbstractListModel nor the Q_PROPERTY please help me.
  • 0 Votes
    10 Posts
    3k Views
    gfxxG
    @sm-a with pleasure ...
  • Rendering Vulkan inside a QML Component

    Unsolved QML and Qt Quick vulkan qml qtquick
    2
    0 Votes
    2 Posts
    836 Views
    SGaistS
    Hi and welcome to devnet, Based on this blog post, you should check the status of that within Qt's documentation.