Navigation

    Qt Forum

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

    • SOLVED Save data from multiple Qt components scattered around multiple QML files
      QML and Qt Quick • qml design data models scope model binding • • ivarec  

      9
      0
      Votes
      9
      Posts
      943
      Views

      I went with the Binding solution in the end :)
    • UNSOLVED How do I share object between pages of a SwipeView?
      QML and Qt Quick • swipeview scope • • Steve Fallows  

      6
      0
      Votes
      6
      Posts
      2435
      Views

      @Steve-Fallows, Just to clarify is receptorPath_textField also an id? in that case your code CTPanel { id: ct_panel Component.onCompleted: { ct_panel.setUp() // Complete set up of the C++ object console.log("CT Panel component completed.") } receptorPath: receptorPath_textField.text } should work wherever it is placed (in the same qml file). if receptorPath_textFieldis is a grouped property from CalibrationPageForm and the id of the page is page Have tou tried? CalibrationPageForm { id: page receptorPath_textField.text: settings.receptorPath } CTPanel { id: ct_panel Component.onCompleted: { ct_panel.setUp() // Complete set up of the C++ object console.log("CT Panel component completed.") } receptorPath: page.receptorPath_textField.text }
    • UNSOLVED Was not declared in this scope
      General and Desktop • scope declaration • • HenrikSt.  

      8
      0
      Votes
      8
      Posts
      9866
      Views

      @jsulm Yes, i agree with you. But as per above requriment i gave that sample.
    • UNSOLVED Why does refferencing by ID kill everything
      QML and Qt Quick • qml style styles scope refference • • Kofr  

      1
      0
      Votes
      1
      Posts
      471
      Views

      No one has replied

    • UNSOLVED Scope of objects sent in connect statements
      General and Desktop • connect signal&slot scope • • RDiGuida  

      2
      0
      Votes
      2
      Posts
      936
      Views

      hi " When a signal is emitted, the slots connected to it are usually executed immediately, just like a normal function call. When this happens, the signals and slots mechanism is totally independent of any GUI event loop. Execution of the code following the emit statement will occur once all slots have returned. The situation is slightly different when using queued connections; in such a case, the code following the emit keyword will continue immediately, and the slots will be executed later." http://doc.qt.io/qt-5.5/signalsandslots.html
    • SOLVED Are Widgets like LineEdit affected by scope ?
      General and Desktop • line edit scope • • mrmorph  

      11
      0
      Votes
      11
      Posts
      2666
      Views

      Hi, Just a quick note, if your widget on stack (i.e. leDimWidth) gets a parent, you'll have a double delete problem since it will get destroyed when the parent is and again when your Stacker object gets destroyed.
    • SOLVED How to cope with the asynchronous-ness of Qt.import() ?
      QML and Qt Quick • qml javascript import asynchronous scope • • ronjouch  

      4
      0
      Votes
      4
      Posts
      1905
      Views

      Good news! My use case is actually well covered by simply using a regular .import "thing.js" as Thing. I don't need the specific namespace-less behavior of Qt.include; I just happened to miss .import when reading the doc, thus failing to understand that Qt.include is only a second import mechanism to be used instead of .import under very specific (documented) circumstances. → Doc might still deserve clarification of the async behavior, but my initial problem is gone with using .import. I updated the QTBUG
    • Scope in QML
      QML and Qt Quick • qml quick slots signals scope signalsslots • • Anas A. Ismail  

      3
      0
      Votes
      3
      Posts
      1392
      Views

      @JKSH Thanks for your help, May you help me more by writing a sample code for this ? Thanks