Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.5k Posts
  • How to programming, like a card shuffle.

    2
    0 Votes
    2 Posts
    2k Views
    D
    Resolve It. Not use Flickable Element. Use a MouseArea custom to Fisica.(Mousearea whith in Inertia ) "Sample has here...":https://quicking.wordpress.com/2011/09/07/mousearea-whith-phisics/
  • [SOLVED] How can I wrap QPushButton into QDeclarativeItem?

    6
    0 Votes
    6 Posts
    4k Views
    T
    I solved the issue. In my code I do, @ delete m_nativeWidget; @ this cause the crash. setWidget took the ownership of my widget
  • ListView rendering problem

    3
    0 Votes
    3 Posts
    2k Views
    R
    You're right i did not know that the ListView is already scrollable. I thought it was like a Column. Thank you again!
  • Can't build qml example in eclipse

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Why does QtQuick does not have TouchArea (like MouseArea) ?

    18
    0 Votes
    18 Posts
    6k Views
    sierdzioS
    Cheers. Hope it helped.
  • Error:QtSdk-offline-linux-x86-v1.2.1.run: cannot connect to X server

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • How to get XML attributes default value when use XmlListModel / XmlRole.

    3
    0 Votes
    3 Posts
    3k Views
    D
    Thinks for quick reply, Michael. I noticed that the spelling is wrong When i check again,today. and, XML Attributes is undefined, i confirmed the operation defaults to 0. Thanks
  • [solved]Strange behavior of QML Elements written in Qt

    6
    0 Votes
    6 Posts
    2k Views
    M
    Hi, QDeclarativeView sets the QGraphicsView::DontSavePainterState optimization flag by default, which means any changes you make to the painter (such as painter->setFont()) in your paint() function need to be undone at the end of the paint() function, or they may "leak" to other items. Regards, Michael
  • Problem with itemAt function in repeater element

    2
    0 Votes
    2 Posts
    2k Views
    M
    Hi, "itemAt":http://qt-project.org/doc/qt-4.8/qml-repeater.html#itemAt-method was added in QtQuick 1.1 so it won't work on devices with Symbian^1 because the newest version of Qt libs possible to install on those devices is Qt 4.7.3 with QtQuick 1.0.
  • QML Data Model and columns

    4
    0 Votes
    4 Posts
    4k Views
    A
    Before you start from scratch, let me point to the Desktop Components project. It already supports a table view with columns, but indeed, it is based on rows. From a design perspective, I get that using roles may be the better design for many situations. Often (not always), the items on a single row in a table really just represent aspects of a single underlying item. For instance, if you are displaying contacts, all the items in the columns (name, d.o.b., phone number) represent aspects or attributes of a single entity: the person. That makes it logical to be able to treat them as such. Representing such information as a table model, pre-supposes that you want to display such information always in a table form. That may not be the case. Perhaps you want to use a representation that looks like a set of business cards instead, for instance. Having the model in the form of a table would then be harder to use. Using a table to represent objects with a number of attributes is one way to represent them, but not the only way.
  • [SOLVED] XmlListModel not reading from query

    4
    0 Votes
    4 Posts
    3k Views
    A
    Forgot to say thanks for your help :)
  • PathView currentItem

    2
    0 Votes
    2 Posts
    3k Views
    T
    Hello, may be you can use http://doc.qt.nokia.com/4.7-snapshot/qml-pathview.html#isCurrentItem-prop When it changes to true, call some function to get role and set it to other element that is outside delegate. Also see "this example":http://qt-project.org/wiki/Qt_Quick_Carousel#b8e7e3c65d9ba234a46708f7dc3d0097
  • Copy paste from Xemacs editor to qtextedit does not work

    2
    0 Votes
    2 Posts
    1k Views
    C
    There's a difference between the yank buffer in Emacs and the system clipboard: http://stackoverflow.com/questions/6...ation-on-linux
  • Test Quick3D app outside dev environement

    3
    0 Votes
    3 Posts
    3k Views
    podsvirovP
    On windows, you should create a folder with the contents: ./qmlviewer.exe ./Qt3D.dll ./Qt3DQuick.dll ./QtCore4.dll ./QtDeclarative4.dll ./QtGui4.dll ./QtNetwork4.dll ./QtOpenGL4.dll ./QtScript4.dll ./QtSql4.dll ./QtXmlPatterns4.dll ./Qt3D - folder from QTDIR/imports ./main.qml - Your presentation ./and other depends If you want to load .3ds scene, then add the folder: ./sceneformats - folder from QTDIR/plugins For example, main.qml: @import QtQuick 1.1 import Qt3D 1.0 import Qt3D.Shapes 1.0 Viewport { width: 480; height: 320 Teapot { effect: Effect { color: "gold" } } }@ Now run Your presentation: qmlviewer -opengl main.qml Good luck!
  • Change vertices in box2d polygon

    2
    0 Votes
    2 Posts
    2k Views
    L
    I've found that it's possible to recreate object with new vertices: @ blockArray[i].destroy(); var block = Qt.createComponent("Block.qml"); if (block.status == Component.Ready) { var dynamicObject = block.createObject(world,{"__x": x,"__y": y}); blockArray[i] = dynamicObject; } @ But it's not the solution of problem, it's just the way to make it work
  • How to get the 3D coordinates of mouse position in Quick3D?

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    2 Posts
    2k Views
    F
    I don't think you can. You will need to create a custom "webview" qml component for that. One approach is to use the "QWebPage::acceptNavigationRequest":http://doc.qt.nokia.com/4.7-snapshot/qwebpage.html#acceptNavigationRequest to stop the "webview" from processing the request and then open the Url using the DesktopServices
  • How to use a Checkable Element?

    5
    0 Votes
    5 Posts
    2k Views
    O
    I haven't found a way to use it. I am now downloading the source code to see how the radioButton write. Any workable codes are appreciated too. [quote author="task_struct" date="1335427068"]Hi, I think you can't define new property where you use component. You have to put your Checkable element in separate QML file in order to create new component or in Component { } block.[/quote]
  • WebView crashing on Today's (Feb 8) google homepage

    3
    0 Votes
    3 Posts
    3k Views
    A
    Has this bug been confirmed with Qt ? this is happening on a "Telus Page":http://www.telusmobility.com/en/ON/promotions/blitz.shtml i know this is an older post but it relates to my issue... i have disabled javascriptenabled and page works fine now any ideas as to why ?
  • [SOLVED] Sending data from one delegate to another not working properly

    2
    0 Votes
    2 Posts
    2k Views
    A
    I solved this issue by putting the information in the model and searching the string from iName from @ function iconClicked() { menuDetails.iName = iName; //-- HERE } @ Thanks