Results 1 to 4 of 4

Thread: Widget on "background"

  1. #1
    Join Date
    Jan 2006
    Posts
    7
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Widget on "background"

    Hi!
    I'm using Qt 4.1.3
    QWidget have flag Qt::WindowStaysOnTopHint
    With this flag created window always stay on top... But I would want that the window stay on back
    How I can solve this problem?
    Thx!

    PS: sorry for my English...my native language is Russian

  2. #2
    Join Date
    Mar 2006
    Posts
    172
    Thanks
    30
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Widget on "background"

    Quote Originally Posted by IPFreely
    Hi!
    I'm using Qt 4.1.3
    QWidget have flag Qt::WindowStaysOnTopHint
    With this flag created window always stay on top... But I would want that the window stay on back
    How I can solve this problem?
    Thx!
    Let me get this right...You want the window to stay at the bottom of the "windows" stack right?

    well you see qt doesn't have a direct flag for this. However you could use a few tools to get this done: (for X11 only)

    1. if using KDE use the porgram kstart like this
    kstart --onbottom <program name>

    just do kstart --help to get the entire list

    2. you can download the program wmctrl (called window manager control) from the net...google it out, first match i think! use it in a similar manner.

    With kstart you can start a program and set it's window parameters but wmctrl works only with already existing windows

    eg. with kstart you can start a program and shift it to another desktop screen but not with wmctrl.

    3. use the _NET_WM hints to set the window properties (read more of this on www.freedesktop.org) using xlib.


    as for windows, i don't know how to achieve this effect, It being a closed system not much info is easily available, try on some window specific groups....maybe the MFC classes could be used....but then portability becomes an issue.

    Nupul
    Last edited by nupul; 13th June 2006 at 06:58.

  3. #3
    Join Date
    Jan 2006
    Posts
    7
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Widget on "background"

    nupul thx!

  4. #4
    Join Date
    Aug 2007
    Location
    Fresno - Colombia
    Posts
    26
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Widget on "background"

    Hello, what I need is exactly as this post suggest or ask, The idea is the app could have the look applet, like superkaramba does.

Similar Threads

  1. minimize child widget
    By sreedhar in forum Qt Programming
    Replies: 5
    Last Post: 15th May 2006, 12:02
  2. Replies: 4
    Last Post: 24th March 2006, 22:50
  3. Forwarding mouse events to another widget.
    By yogeshm02 in forum Qt Programming
    Replies: 8
    Last Post: 28th February 2006, 13:25
  4. [Qt 4.1.0] Split a widget on demand
    By Townk in forum Qt Programming
    Replies: 3
    Last Post: 17th February 2006, 14:16
  5. advanced split widget
    By vitaly in forum Qt Programming
    Replies: 10
    Last Post: 24th January 2006, 20:00

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.