Results 1 to 6 of 6

Thread: Check FOCUS-status on Multiple Windows(sub-forms)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Join Date
    Jun 2013
    Posts
    46
    Thanks
    24
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Windows

    Exclamation Re: Check FOCUS-status on Multiple Windows(sub-forms)

    Apologies for the late reply....

    this is what i need...

    From the sub-window created when a button is pressed(Creating several sub-windows based on number of times Button is pressed)
    I Added a check-box on the subwindow
    That when checked it should emit a signal to the main window(Signifying focus status).
    Creating the signal is no problem

    I have a problem defining the SLOT
    Qt Code:
    1. //this is in the main Window .cpp
    2. //The signal is emited from a sub-window (the sub-window is only created when button is pressed)
    3. connect(this, SIGNAL(checked()), this, SLOT(doSomething));
    4. error
    To copy to clipboard, switch view to plain text mode 

    How do i create the slot in mainWindow to pick up the signal from sub-window
    //will pass certain variables from sub-window to main-window via the signal and slot mechanism

    Many thanks
    Last edited by 2lights; 16th January 2014 at 08:26.

Similar Threads

  1. bool check status from subclass
    By ebsaith in forum Newbie
    Replies: 1
    Last Post: 18th June 2013, 12:54
  2. Can Qt check current audio status?
    By bizmopeen in forum Qt Programming
    Replies: 3
    Last Post: 5th November 2010, 02:58
  3. Multiple Forms and vertical layout in forms
    By eva2002 in forum Qt Programming
    Replies: 0
    Last Post: 13th January 2010, 05:05
  4. How to check COM port status?
    By rajesh in forum Qt Programming
    Replies: 1
    Last Post: 2nd December 2009, 17:07
  5. How to check the current status of a service
    By Ankitha Varsha in forum Qt Programming
    Replies: 1
    Last Post: 21st October 2008, 12:55

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.