Results 1 to 14 of 14

Thread: Direct connection in QML

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Direct connection in QML

    Quote Originally Posted by mfojtak View Post
    What do you mean? That's what direct connections are for - slot is executed by the same thread which emits the signal.
    If your objects live in different threads then having direct connections between them is a good first step to the end of the world.

    I don't want my UI to disrupt my real time part (UI runs under dedicated thread anyway).
    Qt does not bring any real-time guarantees. Regardless if you use direct connections or queued ones.

    How is that possible?
    It's as possible as exposing any other QML element. "Connections" is by no means different.

    The application doesn't contain only time critical parts. Javascript gives user an extra flexibility. Let say I need to add some extra logging to my app. I can just write handler which will do logging in QML without recompiling my app. I am fully aware that Javascript handlers run under dedicated JS engine's thread.
    And that logging has influence on when your time-critical part gets executed (or not).

    I just need to have a choice which connection type to use. Real-world applications usually need both.
    You do have that freedom. You just need to enable it for yourself.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. The following user says thank you to wysota for this useful post:


Similar Threads

  1. Direct QwtPlot painting
    By ssample in forum Qwt
    Replies: 1
    Last Post: 23rd January 2013, 06:41
  2. Replies: 0
    Last Post: 11th November 2011, 19:18
  3. Replies: 1
    Last Post: 2nd April 2010, 06:42
  4. Qt + WINAPI + direct painting
    By JovianGhost in forum Qt Programming
    Replies: 8
    Last Post: 26th March 2010, 05:10
  5. How to use Signal through direct connection
    By santosh.kumar in forum Qt Programming
    Replies: 1
    Last Post: 14th December 2007, 07:07

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.