Page 2 of 2 FirstFirst 12
Results 21 to 22 of 22

Thread: Accessing same variable from multiple windows

  1. #21
    Join Date
    May 2016
    Posts
    6
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Accessing same variable from multiple windows

    Thanks for your response!

    So, if I understand correctly, you can only send one value at a time. It isn't possible for me to send an entire object holding more variables using the signal slot mechanism?

    Thanks!

  2. #22
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,366
    Thanks
    36
    Thanked 1,537 Times in 1,488 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Accessing same variable from multiple windows

    Quote Originally Posted by MartijnKor View Post
    So, if I understand correctly, you can only send one value at a time.
    No.
    A signal can have multiple arguments and the argument types can be any custom class.

    Quote Originally Posted by MartijnKor View Post
    It isn't possible for me to send an entire object holding more variables using the signal slot mechanism?
    Of course it is. That's what my previous comment said.

    Cheers,
    _

Similar Threads

  1. multiple definitoin of variable
    By saman_artorious in forum Qt Programming
    Replies: 6
    Last Post: 22nd April 2013, 19:47
  2. Multiple definition of a variable?
    By T0bi4s in forum Newbie
    Replies: 5
    Last Post: 14th January 2010, 22:13
  3. Multiple File Data accessing
    By hasnatzaidi in forum Newbie
    Replies: 1
    Last Post: 28th October 2009, 16:34
  4. Replies: 6
    Last Post: 25th December 2008, 05:58
  5. Accessing to a static variable from the same class
    By xgoan in forum General Programming
    Replies: 6
    Last Post: 5th March 2007, 10:50

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.