跳到內容

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k 主題 77.7k 貼文
  • Property MouseArea for each ListElement

    2
    0 評價
    2 貼文
    756 瀏覽
    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 評價
    4 貼文
    2k 瀏覽
    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 評價
    2 貼文
    703 瀏覽
    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 評價
    6 貼文
    1k 瀏覽
    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 評價
    3 貼文
    2k 瀏覽
    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 評價
    3 貼文
    1k 瀏覽
    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 評價
    4 貼文
    2k 瀏覽
    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 評價
    2 貼文
    765 瀏覽
    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 評價
    6 貼文
    2k 瀏覽
    C
    Yes i think i got it!! It just needed to refresh itself :) Thank you!!
  • Combining GraphicalEffect with custom Shader Effect

    2
    0 評價
    2 貼文
    830 瀏覽
    p3c0P
    Hi, I think you need to set source of Glow to stroke instead of icon.
  • Animate positionViewAtIndex in ListView

    1
    0 評價
    1 貼文
    1k 瀏覽
    尚無回覆
  • Gridview move transition problem

    1
    0 評價
    1 貼文
    588 瀏覽
    尚無回覆
  • I can't get Qml to play nicely with my OpenGL!

    1
    0 評價
    1 貼文
    609 瀏覽
    尚無回覆
  • Drag & Drop in ListView problem

    6
    0 評價
    6 貼文
    3k 瀏覽
    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 評價
    2 貼文
    764 瀏覽
    T
    I suggest you use code instead of designer
  • Notify release signal to mouse area after go outside (Solve)

    8
    0 評價
    8 貼文
    2k 瀏覽
    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 評價
    2 貼文
    996 瀏覽
    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 評價
    1 貼文
    783 瀏覽
    尚無回覆
  • [Solved] Custom QtQuick MessageDialog

    9
    0 評價
    9 貼文
    7k 瀏覽
    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.
  • How to create a menu with radius and glow effects using the Menu component?

    1
    0 評價
    1 貼文
    487 瀏覽
    尚無回覆