跳到內容

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k 主題 77.8k 貼文
  • Meggo harmattan several problems

    2
    0 評價
    2 貼文
    822 瀏覽
    A
    Ok so, I have seen my problem is under linux and not under windows...
  • QStringListModel doesn't show on QML ListView

    3
    0 評價
    3 貼文
    4k 瀏覽
    S
    I solved the problem by using role name as Qt::display in my qml file. @ import QtQuick 2.0 //![0] ListView { width: 100; height: 100 model: myModel delegate: Item{ Rectangle { height: 25 width: 100 Text { text: display } } } } @ QVariant QStringListModel::data(const QModelIndex &index, int role) implemented for Qt::DisplayRole only hence it was not able to show the items. @QVariant QStringListModel::data(const QModelIndex &index, int role) const { if (index.row() < 0 || index.row() >= lst.size()) return QVariant(); if (role == Qt::DisplayRole || role == Qt::EditRole) return lst.at(index.row()); return QVariant(); }@ But with same I'm hit with another problem i.e. my qml shows only the lat item. Any idea how display the entire list?
  • Destroy qml object

    4
    0 評價
    4 貼文
    3k 瀏覽
    C
    If you're talking about their visual appearance, why not set visible to false? That should stop them from taking up any space in the visual layout. But that's a separate issue to the object lifetimes. Why is it important that you delete some before creating others? Are you on a really tight memory budget, or something? Cheers, Chris.
  • [Solved] Is it possible to achieve some kind of GLOW TEXT in QML?

    6
    0 評價
    6 貼文
    3k 瀏覽
    I
    yes, I found "this":http://doc-snapshot.qt-project.org/qt5-stable/qtgraphicaleffects/qml-qtgraphicaleffects1-rectangularglow.html for Rectangle glow. But I dnt know why it is making the corners rounded with out my consent. Guess it is due to the default cornerRadius property [quote author="inblueswithu" date="1378148099"]I dnt know why this glow is not applying for a Rectangle element. Here is the code: http://pastebin.com/PL4dWWdM Any help?[/quote]
  • ComboBox with many items (Countries)

    5
    0 評價
    5 貼文
    3k 瀏覽
    P
    This is qt-components code not official Qt code?
  • Declaring dependencies in QML plugins

    3
    0 評價
    3 貼文
    1k 瀏覽
    I
    I am aware of the import statement from QML. However, my plugin has no QML component; it is C++ only. So what I'm asking is how to achieve the effect of "import B" in C++. Burk.
  • 0 評價
    1 貼文
    1k 瀏覽
    尚無回覆
  • Styling a QT Quick Controls Text area

    5
    0 評價
    5 貼文
    1k 瀏覽
    A
    I am using the QtQuick desktop components : http://doc-snapshot.qt-project.org/qt5-stable/qtquickcontrols/qtquickcontrols-index.html bye andruj
  • How to display Chinese

    1
    0 評價
    1 貼文
    611 瀏覽
    尚無回覆
  • How to pass Shadereffectsource to Qt3d?

    1
    0 評價
    1 貼文
    639 瀏覽
    尚無回覆
  • How to access an item inside a Tab

    1
    0 評價
    1 貼文
    854 瀏覽
    尚無回覆
  • Creation of .ts files with Visual Studio AddIn does not work

    1
    0 評價
    1 貼文
    760 瀏覽
    尚無回覆
  • Problem with qtquick 2 "Could not initialize GLX"

    2
    0 評價
    2 貼文
    2k 瀏覽
    M
    up !
  • AnchorAnimation as a Behavior

    4
    0 評價
    4 貼文
    1k 瀏覽
    S
    Qt Help (in Qt Creator) -> Look for AnchorAnimation -> Detailed Description, Note...
  • QtQuick controls for BB and Android

    2
    0 評價
    2 貼文
    975 瀏覽
    Gojir4G
    Hello, Actually I didn't use QtQuick controls especially, but QtQuick elements (like Rectangle, MouseArea, etc. ) and all what I needed to do is to go to project properties, under "Run" options, and then "Package configurations", and check the "Qt5Quick" library in the "Required Qt libraries" field. It is working well both on emulator and on the device (Galaxy S3). It's also important to target the good Android version in the option "Android Target SDK". First time I compiled with API17, when my phone was only at version 4.1 of Android (API 16), so it was not working. About BlackBerry I don't know... Never used.. Hope this help
  • QQuickImageProvider complete example

    1
    0 評價
    1 貼文
    1k 瀏覽
    尚無回覆
  • 0 評價
    1 貼文
    635 瀏覽
    尚無回覆
  • QML Flickable doesn't scroll properly

    2
    0 評價
    2 貼文
    2k 瀏覽
    J
    There is a contradiction in your webcontainer item. You say that the content height of your flickable is equal to the web_view height. And you say that the web_view height is equal to the webcontainer height. The only way to interpret this is that the flickable contentArea has the same height as its parent which should in exactly the behaviour you describe. I suspect it will work if you don't explicitly override the preferred height of the web_view
  • Qt Quick and Database

    4
    0 評價
    4 貼文
    2k 瀏覽
    C
    I'll take a look at it. Thank you.
  • Qt creator - designer mode doesn't show

    5
    0 評價
    5 貼文
    3k 瀏覽
    A
    hello as it seems it was solved in this release 5.1.1 thank's for help, andruj