Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.7k Posts
  • List View using two elements

    13
    0 Votes
    13 Posts
    5k Views
    T
    [quote author="chronoske" date="1310520896"]I still can't figured it how, so I guess I'll try to change the concept for my project. Thanks everyone![/quote] It seems to work for me. What is the problem you are facing..
  • 0 Votes
    7 Posts
    17k Views
    B
    That was the problem. Thanks for you help
  • [solved]tab for TextInput in QML

    3
    0 Votes
    3 Posts
    6k Views
    B
    See http://doc.qt.nokia.com/latest/qml-keynavigation.html Basically, set the KeyNavigation tab and backtab properties to the items which focus should switch to for Tab and Shift+Tab. @ KeyNavigation.tab: nextItem KeyNavigation.backtab: prevItem @
  • Textinput qml don't work when loaded into QDeclarativeComponent

    6
    0 Votes
    6 Posts
    3k Views
    T
    working fine for me.. only difference is that I have used QGrpahicsScene instead of OpenGLScene Can OpenGLScene make any difference..?? my main.qml has the code you have posted above ( qml code for editor ) @ #include <QtGui/QApplication> #include "qmlapplicationviewer.h" #include <QDeclarativeContext> #include <QtDeclarative> int main(int argc, char *argv[]) { QApplication app(argc, argv); QGraphicsView * view = new QGraphicsView(); //Scene items QGraphicsScene * scene = new QGraphicsScene(); // new OpenGLScene; scene->setStickyFocus(true); scene->setItemIndexMethod(QGraphicsScene::NoIndex); view->setViewportUpdateMode(QGraphicsView::FullViewportUpdate); QDeclarativeEngine engine; QDeclarativeComponent component(&engine, QUrl::fromLocalFile&#40;"qml/Example/QML2.qml"&#41;&#41;; QDeclarativeComponent component2(&engine, QUrl::fromLocalFile&#40;"qml/Example/main.qml"&#41;&#41;; QDeclarativeItem *item = qobject_cast<QDeclarativeItem *>(component.create()); QDeclarativeItem *item2 = qobject_cast<QDeclarativeItem *>(component2.create()); item->setPos(10,650); item2->setPos(10,450); scene->addItem(item); scene->addItem(item2); view->setScene(scene); view->showFullScreen(); return app.exec&#40;&#41;; }@
  • Page component tutorial

    15
    0 Votes
    15 Posts
    7k Views
    T
    did you updated your Qt SDK with experimental Symbian Qt Quick Components??
  • Performing arithmetic opertaions on QML example

    4
    0 Votes
    4 Posts
    3k Views
    T
    I hope "this post":http://developer.qt.nokia.com/forums/viewthread/7674/ answers this also.
  • Integrating QML with C++ - Plugin problems [Solved]

    12
    0 Votes
    12 Posts
    5k Views
    N
    Boom sussed it. For me I changed QtCreator to build for mingw of the whole project, then launching a mingw command prompt from Programs>Qt SDK>Desktop>Qt 4.7.3 for Desktop (MingW). I could then navigate to the directory and launch qmlviewer to view the app. I figured that it must be a compilation/library configuration issue about 20 minutes after blowing away my Qt install and starting a new one and reading dialingo's mention of the .dll file... Good times. I think I'm well on the way for my Qt Accreditation ;)
  • 0 Votes
    4 Posts
    3k Views
    N
    [quote author="aabc" date="1310297954"]Is it possible to pass ListModel to ListView with some missing parameters? Is there a way to write a delegate that uses only the parameters that the model gave it and use default parameters for those who dont?[/quote] Yes, you totally can do that. Check the sample below: @ListModel { ListElement { label: QT_TR_NOOP("Item 1") value: "item1" } ListElement { label: QT_TR_NOOP("Item 2") value: "item2" position: "left" disabled: "true" } }@ Then in the delegate: @Item { state: (typeof model.disabled != "undefined" && model.disabled == "true" ? "disabled" : "") anchors.centerIn: (typeof model.position == "undefined" || model.position == "left" : leftContainer ? rightContainer); }@
  • Camera element on N8

    8
    0 Votes
    8 Posts
    5k Views
    S
    Raised bug report http://bugreports.qt.nokia.com/browse/QTMOBILITY-1769 Please vote for it if you can repeat it yourself.
  • Using rotation on a Flickable item

    2
    0 Votes
    2 Posts
    3k Views
    H
    To follow up on my problem. I tried to rotate the image in the Flickable instead and even setting the Flickable.contentWidth/Height. The weird thing is it seems that the contentWidth and Height are updated in both cases (rotating either the Flickable or the Image inside it) showing the new sizes. It's just the flickable boundaries that are not properly updated. Is this a bug or am I missing something?
  • Accents in Qml

    15
    0 Votes
    15 Posts
    14k Views
    C
    Thank a lot for your comments [quote author="Eddy" date="1310279256"]Hi Changsheng, What you can do to find the articles back you like is using the rate up button. In the future there will be a way to filter those you have rated up. At this moment you could add the page to your bookmarks in your favorite web browser.[/quote]
  • How to solve QML internationalization?

    6
    0 Votes
    6 Posts
    4k Views
    C
    This has been discussed, please refer to the "threads":http://developer.qt.nokia.com/forums/viewthread/2032/:
  • Drawing with units like mm instead of pixels

    7
    0 Votes
    7 Posts
    6k Views
    M
    Ah! I didn't catch the fact that it's an svg file. In that case I can see how the mm aspect would apply.
  • Initial impressions and Feedback for Qt Quick Components 1.0 for Symbain

    3
    0 Votes
    3 Posts
    3k Views
    C
    +1 for styling/branding. E.g. I'd like to have a red toolbar with red buttons because red is the color of my customer. Something like that is currently not possible.
  • QML Map and MapObjects

    2
    0 Votes
    2 Posts
    3k Views
    C
    Just for future references, I think the solution is posted here: http://developer.qt.nokia.com/forums/viewthread/4818/
  • QtQuick project with qt-components symbian

    5
    0 Votes
    5 Posts
    3k Views
    A
    ohhh it's very beautiful work with QtQuick and Symbian/Meego components! I'm looking forward to stable components...
  • QML - Search

    10
    0 Votes
    10 Posts
    4k Views
    F
    [quote author="Denis Kormalev" date="1310118646"]FlyingFish, it depends on your data structures. If you store data in JS/QML then it will be better to implement search in JS, if you store data in C++ then C++ search will fit better.[/quote] Oh, well that explains a lot. I've been trying to use C++ and it wasn't doing the job right. Thanks Denis! :D.
  • In qml GridView,which property will influence scroll speed?

    10
    0 Votes
    10 Posts
    7k Views
    I
    You can use cacheBuffer to cache some delegates outside visible area.That can help in smooth scrolling. How complex is your grid delegate ? Simpler the delegate better will be scrolling.
  • Styling/Branding app using Qt Symbian Components

    5
    0 Votes
    5 Posts
    3k Views
    C
    Yea, your right. Good points in your thread!
  • Qt rsource

    9
    0 Votes
    9 Posts
    3k Views
    D
    [quote author="spode" date="1310113496"]i create a new resource file. what must i write in "Prefix"?[/quote] Any string which can be used as a file or directory name. Or you can simply use "/" as prefix. [quote] everything… [/quote] If "Manual":http://doc.qt.nokia.com/4.7/resources.html canot solve your problem, you can read this "QtResources":http://developer.qt.nokia.com/wiki/QtResources