Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.3k Posts
  • PinchArea scale in and scale out touch coordinates

    21
    0 Votes
    21 Posts
    6k Views
    B
    hi i was trying the above method..it seems to be quite painful..But certainly there seems to be a multiplication factor .Meanwhile if u get any ideas please let me know Thanks
  • Javascript accessing local files in a webview?

    2
    0 Votes
    2 Posts
    935 Views
    M
    Can any one please help?
  • How to set item at the top of screen?

    5
    0 Votes
    5 Posts
    1k Views
    M
    @jiangcaiyang Sorry? I don't understand you, could you pls rephrase?
  • [SOLVED] Slider Issue

    5
    0 Votes
    5 Posts
    2k Views
    K
    Ah. Thank you so much that's perfect!
  • FontLoader: issue with multiple fonts of same family

    2
    0 Votes
    2 Posts
    2k Views
    D
    looks like a bug to me, If you are sure please submit a bug
  • Directorys are shown twice in qrc path

    4
    0 Votes
    4 Posts
    1k Views
    dheerendraD
    When you are adding the file, it takes the path from the current source directory. Here is documentation from Qt Resource file system. "The specified paths are relative to the directory containing the .qrc file. Note that the listed resource files must be located in the same directory as the .qrc file, or one of its subdirectories" If you don't want this relative path in QRC file, you can remove the entire path and keep only required file. Just open the QRC file in Qt creator->RightClick->Rename. Now you can remove the path you don't want. Hope this helps.
  • No warning when importing directories with identically named types

    4
    0 Votes
    4 Posts
    961 Views
    p3c0P
    That would be a problem definitely. Maybe you can suggest this as a feature request to the Qt Creator developers.
  • Multiple QQuickWindows and opengl context persistence

    2
    0 Votes
    2 Posts
    2k Views
    R
    I found that turning on threaded render on Window (via QML_FORCE_THREADED_RENDERER=1 env var) forces all instances of QQuickWindow to create their own opengl context. But still wondering how to overcome application opengl data destruction when Qt kills opengl contexts object.
  • Index undefined for elements in ObjectModel?

    5
    0 Votes
    5 Posts
    1k Views
    p3c0P
    That too doesn't work.
  • How to know if a property has a property binding?

    3
    0 Votes
    3 Posts
    901 Views
    F
    Thanks. I think manually setting a bool flag when the code changes between binding and constant will do too.
  • Opengl under qml release resources

    1
    0 Votes
    1 Posts
    612 Views
    No one has replied
  • [SOLVED] changing property of element from other qml file

    6
    0 Votes
    6 Posts
    3k Views
    p3c0P
    I don't know about your other code. Atleast in the above code i dont see where you are assigning a value to itemUrl other than in View2.qml. AFAIK the on<property_name>Changed signal handler are executed when a change is detected.
  • Best way to store downloaded XmlModel in LocalStorage with qml

    5
    0 Votes
    5 Posts
    2k Views
    G
    The step with the db is only neccessary bcause i was not sure how to add elements to an existing xml document. I think QDomDocument does this job, so i can directly update a xml file. What about images? Would you download them and put them in a folder, or is there an easier way with QAbstractNetworkCache, QNetworkDiskCache, QDeclarativeImageProvider? They all seem quite complicated or limited and i think simply downloading images and store them in a folder seems more easy.
  • Mouse wheel behaviour in nested Flickables (Qt 5.2 vs. 5.3)

    1
    0 Votes
    1 Posts
    591 Views
    No one has replied
  • Where is the alpha of a color stored?

    2
    0 Votes
    2 Posts
    1k Views
    p3c0P
    Hi, You can access it as follow, @ Component.onCompleted: { console.log(color.r, color.g, color.b, color.a) //a-alpha } @
  • Add object to QAbstractListmodel-derived model from QML

    16
    0 Votes
    16 Posts
    4k Views
    p3c0P
    Oh Sorry for the typo. Thanks for pointing out. I've now edited the original post.
  • Can I do setUnifiedTitleAndToolBarOnMac with QML?

    1
    0 Votes
    1 Posts
    555 Views
    No one has replied
  • Example is a little difficult to follow

    9
    0 Votes
    9 Posts
    3k Views
    D
    I did the same thing but poof everything just went away. I plan on just starting back at square one. Maybe, I'll discover what happened. I appreciate the help it did clear some things up.
  • Problem with Qt5, QML and global variables in javascript file

    11
    0 Votes
    11 Posts
    4k Views
    R
    Eventually, Loader help me fix the issue, but I still don't understand why the JS doesn't work for Item in delegate. It seems more like a BUG.
  • Qml project

    2
    0 Votes
    2 Posts
    670 Views
    sierdzioS
    Just like any other Qt project. Instead of creating a widget, though, use QQuickView to run QML code. Or, if you prefer, you can copy the project template from Qt Creator.