Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.3k Posts
  • 0 Votes
    5 Posts
    2k Views
    p3c0P
    That's Good. Thanks for the Info. Added to my Lib. :)
  • Property MouseArea for each ListElement

    2
    0 Votes
    2 Posts
    740 Views
    p3c0P
    Hi, You will have to do that in the delegate. Since delegate is an item you can provide it a MouseArea. For eg. @ delegate: Item { MouseArea { anchors.fill: parent onClicked: console.log(index,model.name) } } @
  • QTQuick2 Application wont start on some platforms

    4
    0 Votes
    4 Posts
    2k Views
    S
    Hi Andreas I have no experience wth iOS. For us the problem appears with M$ OS and we us OpenGL, also for 1.1. How do you build for iOS? Do you use a Mac OS X system? Thanks dan
  • OpacityMask only works on Images?

    2
    0 Votes
    2 Posts
    693 Views
    p3c0P
    Hi, It does work. You are putting in wrong source and maskSource. Try this @ import QtQuick 2.0 import QtGraphicalEffects 1.0 Item { width: 300 height: 300 Rectangle { id: bug width: parent.width height: parent.height color: "blue" radius: width/2 } Image { id: mask source: "http://qt.digia.com/Global/About Us/Qt_master_logo_CMYK_300dpi.png" sourceSize: Qt.size(parent.width, parent.height) visible:false width: parent.width height: parent.height } OpacityMask { anchors.fill: mask source: mask maskSource: bug } } @
  • [solved] animating text color on keypress

    6
    0 Votes
    6 Posts
    1k Views
    U
    I am on Qt 4.7, so I don't have the onStopped callback.
  • OpacityMask doesn't work for me ... what am I missing?

    3
    0 Votes
    3 Posts
    2k Views
    C
    I figured out the problem, I downloaded the Butterfly.png from the OpacityMask documentation page and it looked like it had the properly transparent background, but it didn't. When I modified the image to actually have transparency, everything worked.
  • QML embed text inside a RadioButton

    3
    0 Votes
    3 Posts
    1k Views
    dheerendraD
    You can style RadioButton as previous post indicated. You can also develop your own radio button like the following. @Rectangle { width: 40 height: 40 radius: width/2 border.color: "black" border.width: 2 Rectangle { id :radio anchors.centerIn: parent width: parent.width-10 height: parent.height-10 radius: width/2 border.width: 1 border.color: "black" Text { anchors.centerIn: parent text: "Wor" } } MouseArea { anchors.fill: parent onClicked: { radio.color = "black" } } }@
  • No QML errors, but it won't start

    4
    0 Votes
    4 Posts
    2k Views
    p3c0P
    You're Welcome. It should actually be true by default. Don't know why the Qt developers want it to be explicitly set to true. The Qt Creator properly sets it in Qt Creator >= 5.3 when new project Qt Quick Application is created.
  • Enabling Enter Key on QT Form

    2
    0 Votes
    2 Posts
    751 Views
    C
    It seems that the space bar works as an Enter function though.. is it possible to swap the functions?
  • SOLVED: How can i input a jpeg background Image on a QT Form?

    6
    0 Votes
    6 Posts
    2k Views
    C
    Yes i think i got it!! It just needed to refresh itself :) Thank you!!
  • Combining GraphicalEffect with custom Shader Effect

    2
    0 Votes
    2 Posts
    812 Views
    p3c0P
    Hi, I think you need to set source of Glow to stroke instead of icon.
  • Animate positionViewAtIndex in ListView

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Gridview move transition problem

    1
    0 Votes
    1 Posts
    576 Views
    No one has replied
  • I can't get Qml to play nicely with my OpenGL!

    1
    0 Votes
    1 Posts
    601 Views
    No one has replied
  • Drag & Drop in ListView problem

    6
    0 Votes
    6 Posts
    3k Views
    E
    I just checked the qt code, it seems that the DropArea.entered() signal is only sent when the mouse moves
  • Does anyone use qtcreator as qml designer?

    2
    0 Votes
    2 Posts
    745 Views
    T
    I suggest you use code instead of designer
  • Notify release signal to mouse area after go outside (Solve)

    8
    0 Votes
    8 Posts
    2k Views
    T
    Hello, QML Drag is not good ,up to now. I can't drag and drop to external application and I have my own purpose to use C++ . I have just figured the solution . I just use QQuickItem::ungrabMouse() to ungrab the mouse on My rectangle in C++ code . So, after I drop the rectangle , the mouse won't affect on the old rectangle . Anyways, thanks for your help .
  • Screen.logicalPixelDensity should be undeprecated

    2
    0 Votes
    2 Posts
    982 Views
    SGaistS
    Hi and welcome to devnet, You're on the wrong channel here to discuss this mater, this forum is more user oriented. To reach Qt's developers/maintainers you should rather ask this on the interest mailing list. Don't forget to subscribe first.
  • QQuickView resize Lag

    1
    0 Votes
    1 Posts
    769 Views
    No one has replied
  • [Solved] Custom QtQuick MessageDialog

    9
    0 Votes
    9 Posts
    6k Views
    C
    few minutes after my previous post, I got a solution/workaround for it. It doesn't work if you define the standardButtons inside the MessageDialog like: @ MessageDialog { id: messageDialogOnRemove modality: Qt.WindowModal // ... other stuff here.. standardButtons: StandardButton.Yes | StandardButton.No }@ but it works if you avoid defining the standardButtons in the declaration above and put it just before you want to display it, like: @messageDialogOnRemove.standardButtons = StandardButton.Yes | StandardButton.No messageDialogOnRemove.show()@ Hope this helps someone.