Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.3k Posts
  • Set orientation on embedded device

    10
    0 Votes
    10 Posts
    4k Views
    M
    [quote author="bkamps" date="1340947047"]The applications consists of multiple images, but also Rectangles and Text..[/quote] I would expect the QML transform to have a performance impact -- from memory QPainter has a number of optimizations that can't be applied when more complex transforms are present. You could try running with the QML_SHOW_FRAMERATE environment variable set to see what sort of performance you get for rotated vs. non-rotated. Regards, Michael
  • RichText on Symbian Belle

    6
    0 Votes
    6 Posts
    3k Views
    T
    Oh, sorry. It's QML forum. But I am sure that QML has some kind of container which can contains HTML.
  • [SOLVED] Compile QML files as resource or a part of app?

    4
    0 Votes
    4 Posts
    3k Views
    sierdzioS
    Good. If that solves your problem, please add "[SOLVED]" at the beginning of your topic's title.
  • Qml Text contain special characters

    3
    0 Votes
    3 Posts
    4k Views
    G
    TextInput and TextEdit act different for other special characters.
  • Flickable issue with MouseArea and preventStealing

    1
    0 Votes
    1 Posts
    4k Views
    No one has replied
  • How to get a Children of a Component

    12
    0 Votes
    12 Posts
    19k Views
    ?
    Thank You for your answers. I'm sorry, but I already don't exactly understand how to doit. @ ListView { id: listview_center model: listmodel_center //<-- Is my separate .qml ListView {...} delegate: component_center //<-- Is my seperate .qml Component {...}, see the posts before anchors.fill: parent orientation: ListView.Horizontal focus: true }@ I set the next Item from the list with this call: @listview_center.positionViewAtIndex(value_menu_center_current,ListView.Center)@ I use it so, because I only want to display always one element (without the swaping from the end to the beginning). Can You please explain again how to manage Transtitions/Animations between switch to next Item of the List. Thank You very much.
  • [solved] A sort of tree view in QML?

    6
    0 Votes
    6 Posts
    6k Views
    I
    Yeahhh! Find the way this morning :P I slightly changed the order algorithm in this way: @ function searchForChilds(itemId, startingFrom, currLevel) { for(var i = startingFrom; i < xmlListModel.count; i++) { var item = xmlListModel.get(i); if(item.parentId === itemId) { item.commentLevel = currLevel; push(item); searchForChilds(item.commentId, i + 1, currLevel + 1); } } } function reconstructCommentsTree() { if(xmlListModel.count === 0) return; var item;// = xmlListModel.get(0); for(var i = 0; i &lt; xmlListModel.count; i++) { item = xmlListModel.get(i); if(item.parentId === 0) { item.commentLevel = 0; push(item); searchForChilds(item.commentId, i + 1, 1); } } } @ In this way, i add the property commentLevel to the items of the outer listmodel, so that I can use this value in the delegate of the listview. ;) hope this is not to much complex as an algorithm for a mobile device...
  • [SOLVED] window maximize signal

    4
    0 Votes
    4 Posts
    4k Views
    C
    Maybe you want to check out "QResizeEvent":/doc/qt-4.8/qresizeevent.html class ;)
  • [SOLVED] include stateless js files

    4
    0 Votes
    4 Posts
    6k Views
    C
    It's difficult in QtQuick1.x but not impossible. You can, for example, use a single .pragma library script as the single repository of shared global data, and then import it from all QML files where you need it. For those non-pragma-library JavaScript files which need to access that data, you'll have to pass the data to them as function arguments, rather than attempting to access it directly (since in QtQuick 1.x there is no way to import one JavaScript file from another; that is a QtQuick2 feature, as are module apis). Cheers, Chris.
  • How to Adding event onClick in MapImage element in QML?

    7
    0 Votes
    7 Posts
    5k Views
    S
    It is most probably because your general MouseArea is on top of your Map and catches events. You should either place it before your Map in the code or add "z: 1" in your map properties to place it in front.
  • Saving QML image

    2
    0 Votes
    2 Posts
    2k Views
    D
    "This":http://qt-project.org/forums/viewthread/3948/#24071 might be what you want
  • Signing Certificate And Key In Symbian

    3
    0 Votes
    3 Posts
    2k Views
    D
    If you plan to publish the app to Nokia Store and you have a Nokia Publisher account, you can send a email to developer.support@nokia.com with your phone IMEI and Nokia Publisher account username. They will give you some protected UIDs with signing certificate. more info "here":http://www.developer.nokia.com/Distribute/Packaging_and_signing.xhtml
  • Create a pixmap from a QQuickItem (in Qt5)

    3
    0 Votes
    3 Posts
    3k Views
    S
    Nice, thanks, I will definitely check that
  • Flickable, ListView work with touch

    5
    0 Votes
    5 Posts
    3k Views
    G
    if i create a qt project with qt widgets, and set the touchEvent flag, the touch work very good. But it does'nt work the same with the qml element(listView,Flickabe,...)
  • [solved] Combine Listitem, Column and Row... What am I doing wrong? :S

    9
    0 Votes
    9 Posts
    5k Views
    I
    Finally I manage to sort out this layout, by taking reed of the Row, it seems they are a bit painful in some cases :P an using just anchored items and some defined heights. Here the code, in case it could be of any help to someone else :) @ Component { id: newsItem Item { width: parent.width height: childrenRect.height ListItem { id: newsListItem width: parent.width subItemIndicator: true height: itemDesc.height + 10 Column { id: itemDesc anchors { left: parent.left right: parent.right leftMargin: 10 rightMargin: 30 verticalCenter: parent.verticalCenter } spacing: 5 Item { id: itemMainInfos width: parent.width height: Math.max(thumbnailImage.height, newsTitle.height) Image { id: thumbnailImage anchors { left: parent.left verticalCenter: parent.verticalCenter } width: 70 fillMode: Image.PreserveAspectFit source: thumb } Text { id: newsTitle anchors { left: thumbnailImage.right leftMargin: 10 right: parent.right } verticalAlignment: Text.AlignVCenter .... text: title } } Item { id: itemSecInfos width: parent.width anchors { left: parent.left right: parent.right } height: 20 Text { id: newsAuthor anchors { top: parent.top bottom: parent.bottom left: parent.left } width: (parent.width / 2) verticalAlignment: Text.AlignVCenter .... text: author } Text { id: newsDate anchors { top: parent.top bottom: parent.bottom left: newsAuthor.left right: parent.right } verticalAlignment: Text.AlignVCenter ... text: pubDate } } } } } }@
  • Is there a automatic repaint in QML?

    2
    0 Votes
    2 Posts
    3k Views
    M
    Hi, As long as QML knows about the bounding rectangle of your custom component (if it is QDeclarativeItem derived and has a width/height, then it should, otherwise if it is QGraphicsObject derived you may need to re-implement QGraphicsItem::boundingRect()), and it only paints within its bounding rectangle, then repaints should automatically occur for regular usage (i.e. whenever the view detects that it needs a repaint). To force a full repaint every time anything is detected dirty, you can also try the QGraphicsView::FullViewportUpdate flag. Regards, Michael
  • QML file question

    2
    0 Votes
    2 Posts
    1k Views
    cmessineoC
    The only way I could get my qml components to show up in the designer library item pane was to use relative path something like import "../../../../workspace/components/" Which is too bad.
  • How to use qml to implement a navigation pad?

    5
    0 Votes
    5 Posts
    3k Views
    B
    Well, I guess it wont work with just QML. You have to write your own extension Plugin in C++ if you want to be able to determine if the exact shape of a button is selected. A MouseArea in QML does unfortunately only support a rectangular region. I would however just place 4 rectangular MouseAreas over it, the result will not be perfect but I think it will be good enough for most use cases.
  • QML flipable messes up my opacity

    1
    0 Votes
    1 Posts
    931 Views
    No one has replied
  • Rotation of an image (in a loop) is not smooth although the fps is 60

    4
    0 Votes
    4 Posts
    3k Views
    ?
    Thank You for your answers, I forget to say that i tried it with QtQuick 2.0, too. There is the same Problem.