Results 1 to 3 of 3

Thread: [qt4] Task Bar Type Behavior Wanted

  1. #1
    Join Date
    Jan 2006
    Location
    Somewhere in the middle of the State of New York
    Posts
    7
    Thanks
    4
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Question [qt4] Task Bar Type Behavior Wanted

    What I need is for my application to behave like the Windows task bar or KDE/Gnome Panels, where the usable desktop area for other applications shrinks when my application is up and running. "Alway on top" is not enough as I cant have parts of Other Applications hidden behind mine.

    So I may just be having a really dumb day, but I cant seem to determine how to do this .
    I would need this to work on both Win2k and various flavors of Linux with QT4, even if someone only knows how to do this in QT 3,looking at a QT3 solution would help solve it for QT4.



    Qt Code:
    1. int main( int argc, char * argv[] )
    2. {
    3.  
    4. Qt::WFlags flags = Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint;
    5.  
    6. QApplication app(argc, argv);
    7.  
    8. mainWindow mw( 0,flags );
    9. mw.resize( QApplication::desktop()->width() , 200 );
    10.  
    11. mw.show();
    12. return app.exec();
    13.  
    14. }//end main()
    To copy to clipboard, switch view to plain text mode 

    Thanks in advance
    "Power, The only Thing Better than Toast" -- Blitzen The Evil Reindeer

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

    Default Re: [qt4] Task Bar Type Behavior Wanted


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

    KMAPSRULE (27th April 2006)

  4. #3
    Join Date
    Jan 2006
    Location
    Somewhere in the middle of the State of New York
    Posts
    7
    Thanks
    4
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: [qt4] Task Bar Type Behavior Wanted

    Thanks, looks like it will solve the linux side of the House, didnt notice that thread while i was searching
    "Power, The only Thing Better than Toast" -- Blitzen The Evil Reindeer

Similar Threads

  1. Compile 4.4.0
    By LordQt in forum Installation and Deployment
    Replies: 18
    Last Post: 29th May 2008, 13:43
  2. dummy question(Error)
    By Masih in forum Qt Programming
    Replies: 12
    Last Post: 19th July 2007, 23:38

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.