Results 1 to 2 of 2

Thread: Thread class in many form

  1. #1
    Join Date
    Jan 2013
    Posts
    44
    Thanks
    7
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Thread class in many form

    hi everyone;
    i have 2 forms are mainform ,and form1 is a child form of mainform,
    when I press a button on mainform ,it will open form1,
    i have write a thread class (name is a mythread) ,I use this thread in both 2 form above.
    how I want when press a button on mainform ,it open form1 ,but value from mythread is only emit to form1 ,but not in mainform.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Thread class in many form

    That description is way to vague, can you show how you instantiate the form and thread objects?

    Cheers,
    _

Similar Threads

  1. Access form's widget's in other class
    By p3c0 in forum Newbie
    Replies: 3
    Last Post: 12th June 2010, 14:20
  2. Controlling widget from form with class
    By strateng in forum Newbie
    Replies: 0
    Last Post: 6th April 2010, 01:56
  3. Replies: 3
    Last Post: 16th May 2007, 11:07
  4. How i will use treeWidget of GUI class in thread class
    By santosh.kumar in forum Qt Programming
    Replies: 1
    Last Post: 15th May 2007, 15:31
  5. Replies: 2
    Last Post: 22nd May 2006, 22:08

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.