Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.6k Posts
  • Extending QtQuick.Controls ApplicationWindow to set OpenGL format

    3
    0 Votes
    3 Posts
    2k Views
    E
    Using ApplicationWindow stuff is very convenient. It's unfortunate that one can't change their OpenGL version/profile when using it. This seems like a very typical use case for desktop application developers using OpenGL. I hope this will be fixed in a future version of Qt. Thank you for the suggestion!
  • [SOLVED] Refresh blur effect

    5
    0 Votes
    5 Posts
    2k Views
    strahlexS
    Thank you. I tried everything expect moving the Blur outside the Image Component that seems to fix the problem.
  • 0 Votes
    3 Posts
    923 Views
    T
    Thanks Dheerendra, Yes, can you share some code example about your statement "It is better you include conditional statement inside the code itself call either Qt Widget UI or QML UI"?
  • Qml Buttons and onClicked

    3
    0 Votes
    3 Posts
    2k Views
    K
    I just made it a mouse area and used onPressed and onReleased
  • Network of Nodes/Arcs with Scene Graph

    1
    0 Votes
    1 Posts
    730 Views
    No one has replied
  • Looking for Scene Graph Examples That Don't Use C++

    1
    0 Votes
    1 Posts
    480 Views
    No one has replied
  • Qml dynamic component creation - Mouse Events

    2
    0 Votes
    2 Posts
    1k Views
    dheerendraD
    try enabled:false in inside the onClicked handler in main.qml.
  • Qt.resolvedUrl from included .js file (problems in 5.2)

    4
    0 Votes
    4 Posts
    1k Views
    D
    Thanks for your reply, proving this is really a problem. Unfortunately, my workaround was to downgrade to 5.1...
  • QML MouseEvent

    4
    0 Votes
    4 Posts
    2k Views
    N
    Hi, The following are my qml codes. I am creating the task component on a mouse click on main.qml. Can you please specify where I have to accept/reject the mouse events. main.qml @ import QtQuick 2.0 import "Test.js" as Test import "Global.js" as GlobalJS Rectangle { id: root width:800 height:480 Image { id: bg source: "../../resources/images/Home_Screen/bg.png" x: 0 y: 0 opacity: 1 } Image { id: task_manager source: "../../resources/images/Home_Screen/task_manager.png" x: 219 y: 342 opacity: 1 MouseArea { anchors.fill: parent onClicked: { GlobalJS.dynamic_component_task=Qt.createComponent("TaskManager.qml").createObject(root, {}); } } } Image { id: about source: "../../resources/images/Home_Screen/about.png" x: 544 y: 297 opacity: 1 MouseArea { anchors.fill: parent onClicked: { Qt.createComponent("About_Screen.qml").createObject(root, {}); } } } } @ Task.qml @ import QtQuick 2.0 Rectangle { id: rect x:0 y:0 width:800 height:480 Image { id: bg1 source: "../../resources/images/Home_Screen/Task_Manager/bg.png" x: 0 y: 0 opacity: 1 } Text { id: task_manager text: "Task Manager" font.pixelSize: 20 font.family: "Arial-BoldMT" font.bold: true color: "#8bfcfd" smooth: true x: 400 y: 10 opacity: 1 } Text { id: processText x:150 y:120 text: "RUNNING" font.pixelSize: 18 font.family: "SegoeUI" color: "#8bfcfd" smooth: true opacity: 1 } Text { x:400 y:120 text: "CPU" font.pixelSize: 18 font.family: "SegoeUI" color: "#8bfcfd" smooth: true opacity: 1 } Text { id: memText x:620 y:120 text: "MEMORY" font.pixelSize: 18 font.family: "SegoeUI" color: "#8bfcfd" smooth: true opacity: 1 } Image { id: refresh source: "../../resources/images/Home_Screen/Task_Manager/refresh.png" x: 274 y: 414 opacity: 1 MouseArea { anchors.fill: parent onClicked: { console.log("refresh ... "); } } } Image { id: end source: "../../resources/images/Home_Screen/Task_Manager/end.png" x: 452 y: 414 opacity: 1 MouseArea { anchors.fill: parent onClicked: { console.log("end the process "); } } } } @ Kindly help me to fix this. Thanks & Regards, Narayanan K
  • ZOOMIN AND ZOOMOUT IN QT

    5
    0 Votes
    5 Posts
    2k Views
    p3c0P
    bq. ...like i will choose some particular area of my graph and it should be zoomed Have a look at "Qt5 Everywhere Demo":https://qt.gitorious.org/qt-labs/qt5-everywhere-demo/source/9a868f96ee63c21ceda890d8dfc9d33f093d1b6d. May be you will get some idea.
  • How to use InverseMouseArea?

    2
    0 Votes
    2 Posts
    773 Views
    H
    On_mouse_click you can compare the clicked position with the item boundaries. if clicked position outside the boundaries you can do what you want.
  • How to manipulate with Canvas image in C++ code?

    3
    0 Votes
    3 Posts
    2k Views
    Z
    This method is bad for me because there is some lags while saving...
  • QtQuick Action in C++ (or at least a separate .qml file)

    4
    0 Votes
    4 Posts
    2k Views
    F
    I've tried a few things. The simplest was to define the Action object in it's own file... ActionOpenGCode.qml @ import QtQuick 2.2 import QtQuick.Controls 1.1 import QtQuick.Layouts 1.1 import QtQuick.Dialogs 1.1 import nexis 1.0 Action { text: "&Open" shortcut: StandardKey.Open iconSource: "../images/tool_open.gif" tooltip: "Open a G-Code File" } @ And then in main.qml @ ActionOpenGCode { id: actionOpenGCode } menuBar: MenuBar { Menu { title: "&File" MenuItem { action: actionOpenGcode } @ I get the error... file:///home/frankt/svn/nexis/nexis/qml/main.qml:226: ReferenceError: actionOpenGcode is not defined (which is line 8 of the main.qml snippet) Am I doing this right?
  • Input video data from C++ to QML Video Player

    3
    0 Votes
    3 Posts
    2k Views
    L
    Is this what you looking for? http://qt-project.org/forums/viewthread/27741/
  • Qml Canvas in SplitView: on resizing the canvas the context disappear

    2
    0 Votes
    2 Posts
    4k Views
    B
    I did it. Following Code solve my problem: @Canvas{ ... onWidthChanged: { var ctx = getContext('2d'); ctx.reset(); [draw some stuff] } }@ Bux52
  • QQuickPaintedItem

    2
    0 Votes
    2 Posts
    1k Views
    p3c0P
    Hi, paint() needs to called when ever your data changes unlike paintevent(). Use a QTimer to update it and make sure the data is changing or else it will just paint the same thing.
  • How to create the iPhone Contacts header scroll Effect In QML

    1
    0 Votes
    1 Posts
    663 Views
    No one has replied
  • QML private properties

    19
    0 Votes
    19 Posts
    14k Views
    F
    Hi, I find this thread cause there is an issue with QtCreator that push me in mistake. QtCreator find this "on__OriginXChanged" invalid and "on__originXChanged", but the first one with the upper case is the property name working when the application runs. PS : I use Qt 5.2
  • [Solved] Exe file does not run without QtCreator (Qt 5.0.1 and QtQuick 2.0)

    15
    0 Votes
    15 Posts
    15k Views
    Y
    [quote author="JKSH" date="1390136766"]That means you are using the wrong versions of the MinGW DLLs. Where did you get them from?[/quote] You are right. I just figured out that there are two libstdc++-6.dll on my computer. One is under \MinGW\bin(what caused the problem). The other one is under \Qt\Qt5.2.0\5.2.0\mingw48_32\bin, and it works fine!! Thanks.
  • Qt5 Custom GeometryExample with beziercurve and QSGGeometry::setLineWidth

    5
    0 Votes
    5 Posts
    2k Views
    M
    Looks like it's a bug in qt 5.2 https://bugreports.qt-project.org/browse/QTBUG-35346?page=com.atlassian.streams.streams-jira-plugin:activity-stream-issue-tab