Results 1 to 5 of 5

Thread: How to present a Qt GUI app window to users???

  1. #1
    Join Date
    Jun 2011
    Posts
    45
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default How to present a Qt GUI app window to users???

    Now I have a Qt GUI app called A, and another we can call it B. Then I launch A, and launch B,in this case ,A window is behind B, we can send dbus message to A. The question is :How can I show A up to me ???

  2. #2
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to present a Qt GUI app window to users???

    once u get the dbus message,

    Qt Code:
    1. QWidget::activateWindow ()
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Jun 2011
    Posts
    45
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to present a Qt GUI app window to users???

    Quote Originally Posted by nish View Post
    once u get the dbus message,

    Qt Code:
    1. QWidget::activateWindow ()
    To copy to clipboard, switch view to plain text mode 
    thans for your answer ,but what you said dose not work ,when my window stay behind another window , I send dbus message to it, then it invoke activateWindow ,but my window still stay behind other window!

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

    Default Re: How to present a Qt GUI app window to users???

    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Jun 2011
    Posts
    45
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default how to bring app GUI to front??? (I have post my project)

    I have a app with GUI ,I want it to show to front when the app receive a dbus message,but the app can't do like it now , I have attach it ,you can download it, modify my code,thanks!
    PS:when I want it show front i send "dbus-send / com.test.clip.show" the app's session name is com.test.clip
    Attached Files Attached Files

Similar Threads

  1. How to present data in a list
    By ogward in forum Newbie
    Replies: 17
    Last Post: 3rd April 2011, 10:13
  2. present data in tabular form reading from a file
    By sachinmcajnu in forum Qt Programming
    Replies: 1
    Last Post: 2nd April 2011, 14:53
  3. How to postpone a signal until present form is closed ?
    By marcvanriet in forum Qt Programming
    Replies: 6
    Last Post: 15th December 2010, 12:22
  4. Replies: 3
    Last Post: 23rd November 2009, 13:41
  5. question about present a picture using QPixmap
    By lovelypp in forum Qt Programming
    Replies: 2
    Last Post: 12th July 2008, 15:43

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.