Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.3k Posts
  • Swedish Qt Quick seminar in Malmö

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • QML, Keys.onPressed

    9
    0 Votes
    9 Posts
    9k Views
    P
    Try this link "Getting Audio Volume Key Event on Symbian Devices":http://developer.qt.nokia.com/wiki/Audio_Volume_Key_Event_On_Symbian , the next time use the search function of the Wiki.
  • [Solved] Filtering data in XMLListModel

    4
    0 Votes
    4 Posts
    4k Views
    A
    Glad that it works for you, and thanks for reporting back!
  • 0 Votes
    6 Posts
    2k Views
    C
    heheh - indeed! Super!!
  • [Solved]closeEvent() is not working when application is closing.

    4
    0 Votes
    4 Posts
    5k Views
    M
    mlong, thank you. QCoreApplication::aboutToQuit helped me. Even if i could not find why closeEvent is not working, i find my problem is solved.
  • Can I make QML based apps persistent?

    4
    0 Votes
    4 Posts
    3k Views
    M
    You could store positions, rotation to a sqlite "database":http://doc.qt.nokia.com/4.7/qdeclarativeglobalobject.html#database-api and reload from database as you want.
  • Qt.multimedia 1.0

    2
    0 Votes
    2 Posts
    3k Views
    P
    You need install "Qt Mobility":http://qt.nokia.com/products/qt-addons/mobility , check the "documentation":http://doc.qt.nokia.com/qtmobility-1.1/installation.html and remember add @ CONFIG += mobility MOBILITY = multimedia@ to your .pro file
  • Create images with QML

    10
    0 Votes
    10 Posts
    6k Views
    M
    That does add another layer of difficulty. Probably should have mentioned that requirement earlier on. Could you mask out the transparent area with a neutral color, perhaps, and remove it later on using GIMP or Photoshop? Or are you looking for partial transparency?
  • How to add/edit text from C++ in QML TextInput?

    11
    0 Votes
    11 Posts
    13k Views
    A
    You don't have to use the private header at all. You can just use it see what properties are supported (and what slots and signals there are). You can invoke all of those without using the private header.
  • QDeclarativeImageProvider does not load image in container

    2
    0 Votes
    2 Posts
    2k Views
    V
    I found answer on stackoverflow: "Columns get a bit funny with items that don't declare their width and height" from funkybro. @Column { id:screenImage Image { id: backImage width: screenImage.width height: screenImage.height source: "image://imageprovider/backimage" } }@
  • Model property set in listview: delegate can't find properties.

    6
    0 Votes
    6 Posts
    5k Views
    B
    That did the trick.. Very strange because I tried this before but then it didn't work.
  • XmlListModel with multiple sources

    3
    0 Votes
    3 Posts
    2k Views
    G
    Be patient! It's no more than 16 and a half hour after your first post. Not everyone sits in front of his/her computer all the time, the folks are spread all over the world. You should wait at least a couple of days before bumping your subject to the front again.
  • How do i send a signal with parameters from QML to cpp code

    5
    0 Votes
    5 Posts
    5k Views
    M
    I've updated my reply...the js code is crucial to propagate the data to the cpp code.
  • How to address all the ListModel ListElements and not just one?

    8
    0 Votes
    8 Posts
    12k Views
    C
    Ah I see...thanks!;) that helps to address similar issues as well...but I definitely need an upgrade...(of my expertise...)
  • How to create a nested Listview

    7
    0 Votes
    7 Posts
    5k Views
    D
    [quote author="Milnadar" date="1303892815"]How about to create new listModel for every folder, and to keep them invisible until not pressed needed item? Are there any nested folders in folders which you click on? Or just files?[/quote] Indeed in a folder there are possibly subfolders and files. :(
  • QGraphicsItem::itemChange nerver called

    3
    0 Votes
    3 Posts
    4k Views
    M
    With this flag enable the function is called in different occasion like @ItemFlagsChange ItemFlagsHaveChanged ItemChildAddedChange ItemSceneChange ItemSceneHasChanged@ But never when my children move. I will try to connect to xChanged signal. Edit : I've found a way to make it work @QVariant Line::itemChange ( GraphicsItemChange change, const QVariant & value ) { if(change == QGraphicsItem::ItemChildAddedChange) { QGraphicsItem* item = value.value<QGraphicsItem*>(); QDeclarativeItem* item2 = dynamic_cast<QDeclarativeItem*>(item); QList<QObject*> loc_o_childrens = children(); foreach(QObject* obj,loc_o_childrens) { QDeclarativeItem* child = dynamic_cast<QDeclarativeItem*>(obj); if(child == item2) { connect(child,SIGNAL(xChanged()),this,SLOT(repaint())); connect(child,SIGNAL(yChanged()),this,SLOT(repaint())); } } } return QGraphicsItem::itemChange(change, value); }@ I really dislike this way of doing things but I can't get the ItemPositionChange.
  • Custom properties in QML

    3
    0 Votes
    3 Posts
    3k Views
    M
    thanks. I've put my data in a class derived from QObject.
  • Moving graphic in QML

    2
    0 Votes
    2 Posts
    2k Views
    S
    Did you take a look at the examples in Qt Creator? There are some dedicated to animation :)
  • [Solved] QML state onload

    4
    0 Votes
    4 Posts
    11k Views
    F
    i set rotation: 3600, with duration 10000, then the image still rotating for 10 seconds Thanks again @mlong
  • 0 Votes
    2 Posts
    2k Views
    V
    Mayby, "QProcess":http://doc.qt.nokia.com/4.7/qprocess.html can help you out?