Results 1 to 2 of 2

Thread: Qt3 Bring to front application

  1. #1
    Join Date
    Jun 2007
    Posts
    21
    Thanks
    25
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Qt3 Bring to front application

    Hi,

    I would like to know if it is possible to bring a Qt application to focus when it receives a message whilst running in the background.

    Now by this i mean if i was using say firefox and my qt application was running and it received a defined message it would be brought to focus in front of my firefox app.

    Now i have seen the QWidget::setfocus function but it does not seem to work on an operating system level.

    Iv also looked at setActiveWindow() and then raise() functions, but the KDE window manager (on SUSE SLED 10) that im using does not seem to allow the application to come up in front.

    was just seeing if anyone out there had come across and solved this problem.

    thanks in advance

    nlev.
    Last edited by nleverin; 25th January 2008 at 02:12.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt3 Bring to front application

    In Qt4 there is QApplication::alert() but I'm unable to find a similar method in Qt3. It wouldn't bring the window in front of others but would tell the user there is something demanding his attention.

    By the way - setActiveWindow() or raise() should have worked.

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

    nleverin (13th February 2008)

Similar Threads

  1. QSkinWindows Classes
    By kernel_panic in forum Qt-based Software
    Replies: 45
    Last Post: 20th April 2010, 12:35
  2. dll + application
    By fpujol in forum Qt Programming
    Replies: 11
    Last Post: 15th April 2007, 18:37
  3. Replies: 3
    Last Post: 8th December 2006, 18:51
  4. How to bring a dialogbox to the front?
    By bood in forum Qt Programming
    Replies: 2
    Last Post: 2nd August 2006, 15:04

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.