Navigation

    Qt Forum

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

    • UNSOLVED What am i missing in my loader code
      QML and Qt Quick • loader component rowlayout • • Kyeiv  

      2
      0
      Votes
      2
      Posts
      32
      Views

      Hey, If this is a direct copy of your code there is a few typos.. id name needs to be id:name. Also you cannot link your customrowlayout alias to the item reference which is outside your custom component.. "Unlike an ordinary property, an alias has the following restrictions: It can only refer to an object, or the property of an object, that is within the scope of the type within which the alias is declared. It cannot contain arbitrary JavaScript expressions It cannot refer to objects declared outside of the scope of its type. The alias reference is not optional, unlike the optional default value for an ordinary property; the alias reference must be provided when the alias is first declared. It cannot refer to attached properties. It cannot refer to properties inside a hierarchy with depth 3 or greater. " Look here: https://doc.qt.io/qt-5/qtqml-syntax-objectattributes.html#property-aliases So you need to do it like this, or simlar :) Item{ id:item Component { id:componentRow Row { id:someRow Rectangle { width:500 height:20 color:"#ff1111" property Item context:item Text { anchors.horizontalCenter: parent.horizontalCenter text: "Some text.." } } } } Loader{ id: loaderr sourceComponent:componentRow } }
    • UNSOLVED QML load file.qml and scale
      QML and Qt Quick • qml loader scale anchoring • • TMJJ001  

      1
      0
      Votes
      1
      Posts
      59
      Views

      No one has replied

    • SOLVED Insert into ListView with Loader
      QML and Qt Quick • qml listview pyside2 loader • • oscarthorn  

      2
      0
      Votes
      2
      Posts
      152
      Views

      Ah, I found the problem. I was telling beginInserRows I was going to insert at the end and then not inserting at the end. Telling it the right place solved the problem.
    • SOLVED Reload a Loader on button click
      QML and Qt Quick • qml loader • • Dylan_Alt.  

      15
      0
      Votes
      15
      Posts
      2344
      Views

      @Dylan_Alt I realize this is a pretty old thread and this is a pretty hacky response, but it appears to work for both local and remote files. onClicked { myLoader.source = "MyLocalOrRemoteFile.qml?"+Math.random() }
    • SOLVED How to measure time taken for QML item to appear on the screen since it was loaded?
      QML and Qt Quick • qml qtquick2 loader item time • • diredko  

      5
      0
      Votes
      5
      Posts
      624
      Views

      If you need this for just measuring the performance of your application, maybe you should use the QML Profiler instead http://doc.qt.io/qtcreator/creator-qml-performance-monitor.html
    • SOLVED Access function/slot loader element in listview
      QML and Qt Quick • listview loader function • • Delta_sim  

      4
      0
      Votes
      4
      Posts
      300
      Views

      Indeed it works ! I did 2 mistakes, I forgot ".item" after currentItem and I didn't changed currentIndex when I switch between pages because I use positionViewAtIndex. But positionViewAtIndex don't change currentIndex of the listView. Thanks guys !
    • UNSOLVED Boot time optimization techniques
      Mobile and Embedded • loader static linking optimization boottime earlyboot • • Srinivasan  

      5
      0
      Votes
      5
      Posts
      796
      Views

      @JKSH Yes I did. On QT part, we followed a lot of techniques mentioned in that post. Using Loaders for lazy loading, optimizing images, using qtquickcompiler. The major challenge is on the OS boot time that we are working on.
    • UNSOLVED qml loader male memory leak!
      QML and Qt Quick • qml c++ loader memory leak qt5.9.2 • • Saman19  

      2
      0
      Votes
      2
      Posts
      696
      Views

      Just by loading one page and coming back, we can't make out the memory leak. Try multiple times like this. If you see a increase & no decrease then we can conclude memory leak. If you can send me the complete example, we can try as well.
    • UNSOLVED Loose a Placeholder due to a loader qml
      QML and Qt Quick • qml loader placeholder • • Juanjex  

      4
      0
      Votes
      4
      Posts
      935
      Views

      Hi Junajex, Could you mark this topic as solved (topic tools on the bottom right > marks as solved) Thanks, Eddy
    • UNSOLVED How to load a QML view from a singleton C++ class within a main window engine
      QML and Qt Quick • qml c++ loader interface singleton • • notalocal  

      3
      0
      Votes
      3
      Posts
      1446
      Views

      I appreciate your response, it lead me to a lot of research on the topic! I figured out it was much easier to implement a tabview on the main view and then to connect the signals with the child objects which were themselves individual views.
    • UNSOLVED QML Loader: signal when Item is completed
      QML and Qt Quick • qml loader • • Hazzl  

      1
      0
      Votes
      1
      Posts
      773
      Views

      No one has replied

    • UNSOLVED QML Timer and Loader
      QML and Qt Quick • qml loader component timer • • Mark81  

      3
      0
      Votes
      3
      Posts
      1125
      Views

      @Mark81 The example works. Is there anything else that is missing ?
    • SOLVED Relocation error when loading shared object
      C++ Gurus • c++ loader linker symborelocation • • kshegunov  

      5
      0
      Votes
      5
      Posts
      2423
      Views

      Ha I know the feeling, like me before, thinking ".. that stupid Qt, why doesn't this work, why are they so dumb..." oooh, it helps to run qmake again :-)
    • UNSOLVED Fullscreen QML Window on OSX
      QML and Qt Quick • qml loader fullscreen • • JeroenDierckx  

      1
      1
      Votes
      1
      Posts
      894
      Views

      No one has replied

    • SOLVED How to set sourceComponent (Loader) to load Component from another QML File ?
      QML and Qt Quick • loader • • David_001  

      3
      0
      Votes
      3
      Posts
      1151
      Views

      Expose your component through a property of file's root item.
    • SOLVED Symbol not found: _iconv
      General and Desktop • loader runtime linker runtime error runtimeerror • • TheFlyingMooseMan  

      7
      0
      Votes
      7
      Posts
      3614
      Views

      Because you didn't ask a question. Use the button to "Ask as question" and then you'll have the "Mark as solved" that should appear.
    • SOLVED How to create and load UI plugins?
      General and Desktop • plugin gui loader • • IL  

      20
      0
      Votes
      20
      Posts
      8540
      Views

      @kshegunov Yap, Thanks, Thanks. :-) Now It's generate all the required files, I also need to add QWidgets in Select Required Models. Best Regards, IL
    • UNSOLVED Listview delegate: Loader.setSource() not working
      QML and Qt Quick • listview delegate loader item • • kylecorver  

      6
      0
      Votes
      6
      Posts
      2964
      Views

      @kylecorver Can you post the complete program? The original isn't a a valid Qml document, leading to guessing about which errors will or will not occur. The OS and Qt version used might also be relevant.
    • UNSOLVED Access properties from dynamically loaded component
      QML and Qt Quick • loader binding properties • • morte  

      2
      0
      Votes
      2
      Posts
      3623
      Views

      Maybe //main.qml: import QtQuick 2.5 Loader { id: loader source: "MyComponent.qml" onLoaded: { loader.item.property1 = "secret" loader.item.property2 = 777 } } //MyComponent.qml: import QtQuick 2.0 Rectangle { id: rect property string property1 property int property2 TextEdit { id: text_edit anchors.centerIn: parent text: property1 + property2 } } or //main.qml: import QtQuick 2.5 Item { id: main width: 200; height: 200 property string property1: "secret" property int property2: 777 Loader { id: loader source: "MyComponent.qml" onLoaded: loader.item.text = property1 + property2 } } //MyComponent.qml: import QtQuick 2.0 Rectangle { id: rect property alias text: text_edit.text TextEdit { id: text_edit anchors.centerIn: parent text: property1 + property2 } } or import QtQuick 2.0 Rectangle { id: rect TextEdit { id: text_edit anchors.centerIn: parent // rect.parent -> loader; rect.parent.parent -> Item with id 'main' text: (rect.parent.parent.property1 !== undefined) ? rect.parent.parent.property1 : "" } }
    • Weird ComboBox behavior
      QML and Qt Quick • qml combobox loader • • Smatcher  

      4
      0
      Votes
      4
      Posts
      1129
      Views

      https://bugreports.qt.io/browse/QTBUG-48053
    • Loader: still receieving signals from previous "page"
      QML and Qt Quick • loader • • StarEng  

      1
      0
      Votes
      1
      Posts
      361
      Views

      No one has replied

    • Loader question
      QML and Qt Quick • qml qtquick loader • • shav  

      2
      0
      Votes
      2
      Posts
      1114
      Views

      @shav When I call setSource() method the old content removed from memory and all connects to signals is removed? AFAIK, Yes.
    • [solved] Loader and QML files
      QML and Qt Quick • qml qt quick loader • • David.G  

      4
      0
      Votes
      4
      Posts
      1268
      Views

      I know this is marked as solved, but just as an aside: to do this with a Loader, you could use a Settings object to store the properties that should be reset to restore the state of the user's view - still a Labs feature just now, but it works very nicely.
    • Row of Loaders : Row size does not reset to 0 upon loaders being destroyed
      QML and Qt Quick • loader • • Tadinu  

      1
      0
      Votes
      1
      Posts
      391
      Views

      No one has replied

    • State Transition Problem
      Mobile and Embedded • qml loader state sliding easing trasition • • Maxim DC  

      4
      0
      Votes
      4
      Posts
      1446
      Views

      @Maxim-DC Yes it is possible. You can find an example here. The exact file in it where it is used.
    • How to load unblocked animated image during loading qml file?
      QML and Qt Quick • loader • • Jean  

      1
      0
      Votes
      1
      Posts
      474
      Views

      No one has replied

    • [SOLVED] QPluginLoader unable to load a Qt Plugin
      General and Desktop • plugin loader interface qtplugin • • bharath144  

      9
      0
      Votes
      9
      Posts
      6856
      Views

      hello, can you tell us how you solve your problem? thank you.