Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. property alias
    Log in to post

    • UNSOLVED Flickable contentY alias in views
      QML and Qt Quick • flickable mvc property alias • • 0...-5  

      1
      0
      Votes
      1
      Posts
      64
      Views

      No one has replied

    • SOLVED ui.qml text object needs to be edited from another .qml file
      QML and Qt Quick • qml qt creator qtquick property alias ui.qml • • texasRanger  

      6
      0
      Votes
      6
      Posts
      412
      Views

      @texasRanger said in ui.qml text object needs to be edited from another .qml file: he ui.qml file it updates in real time how do you show it on the screen ? with qmlscene tool ? if you set textItem.text : "Hello World" inside Display.qml and show it with qmlscene you will see "Hello World". but if you show DisplayForm.ui.qml you will still see "Text"
    • UNSOLVED Accessing properties by name and by number
      QML and Qt Quick • qml binding property alias • • pderocco  

      2
      0
      Votes
      2
      Posts
      311
      Views

      Best choice for you is define the Q_ENUM in C++ and expose the enumeration to QML. Use those enumeration. It should work as is.
    • UNSOLVED Property Alias and runtime loaded QML-Items
      QML and Qt Quick • qml stackview property alias • • J.Hilk  

      4
      0
      Votes
      4
      Posts
      1746
      Views

      @J.Hilk said in Property Alias and runtime loaded QML-Items: I'm however not sure what you mean with parameters dictionary. Oh sorry, wrong word :-) I've meant this from the link I provided: properties: a list of QML properties that should be assigned to the item upon push. These properties will be copied into the item when it is loaded (in case of a component or URL), or when it becomes the current item for the first time (normally upon push). Another possibility would be to use some global context property (added in C++) which your whole app can access. Then you don't need to worry about when and how elements are loaded. In this case, not jet. But I thought, If I'm basically learning a "new language" than I better avoid adopting bad habits, if I can. It is not necessarily a bad habit. It is a trade-off: you load all QML code at application startup - startup is longer (slightly - parsing QML is extremely fast), then all works fast at runtime (or possibly it instantiates components on push(). It definitely does that if you encapsulate ObjX in Component, I'm not sure if it also applies to the way you've done it) or you load by Loader / URL at runtime - startup is faster, but then you will need some time to load the QML file at runtime when user wants to access given stack page
    • UNSOLVED setting QML Drawer properties in another QML file
      QML and Qt Quick • qml qt quick properties property alias property bindin • • Qjay  

      8
      0
      Votes
      8
      Posts
      3429
      Views

      ok. Let us look at like this. Instead of web view, put the Rectangle{} Try to show & hide the rectangle instead of web-view. Till me whether it works or not. Try something like this OffLine_Pages.qml Pane{ id: view property string local_url : "" property string pid : "" property alias vis: web.visible Rectangle{ id : web width: 200;height: 200;color: "red" visible: false } }
    • Invalid alias reference for property
      QML and Qt Quick • qtcreator property alias • • AmazingQt  

      2
      0
      Votes
      2
      Posts
      682
      Views

      Hi, id is not a property but an attribute. See here Out of curiosity, why do you want to alias it ?
    • Update Label Text with QML method called from C++
      QML and Qt Quick • property alias • • marcosbontempo  

      4
      0
      Votes
      4
      Posts
      3041
      Views

      @marcosbontempo That's fine.. It happens all the time :)
    • [SOLVED] how to initialize a property alias in QML
      QML and Qt Quick • qml property alias • • themts  

      3
      0
      Votes
      3
      Posts
      4509
      Views

      Ahh, sure! Thanks :-) Didn't thought it was that easy ;-)