Results 1 to 2 of 2

Thread: Selected window

  1. #1
    Join Date
    Jan 2007
    Location
    Paris
    Posts
    459
    Thanks
    98
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt5

    Default Selected window

    Hello,

    I want to know when a windows is selected in my QT apps.

    I tried : virtual void focusInEvent ( QFocusEvent * event ) without success, since it only concerns the inside of the window.

    I tried : connect(qApp, SIGNAL(focusChanged(QWidget *, QWidget *)),
    this, SLOT(onFocusChanged(QWidget *, QWidget *)));

    But I'm not satisfied with that solution since I get an update for every focus event.

    Any idea?

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Selected window

    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    bunjee (25th October 2007)

Similar Threads

  1. Replies: 1
    Last Post: 11th September 2007, 13:34
  2. Changing selected item color in non-current window.
    By Doug Broadwell in forum Qt Programming
    Replies: 1
    Last Post: 26th August 2007, 07:09
  3. Regarding drawing on Transparent Window
    By Shalabh in forum Qt Programming
    Replies: 3
    Last Post: 31st May 2007, 10:32
  4. move parent window to the front.
    By hvengel in forum Qt Programming
    Replies: 4
    Last Post: 2nd February 2007, 08:41
  5. cannot make a main window modal
    By Dark_Tower in forum Qt Programming
    Replies: 12
    Last Post: 23rd March 2006, 10:21

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.