Results 1 to 6 of 6

Thread: drawing a toolbar on the desktop.

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

    Default drawing a toolbar on the desktop.

    Hi group,

    I wish to design a toolbar, that will be displayed on the desktop. It must have no Window Border around it and when the other windows are maximized, they should be cascaded along with the toolbar

    e.g: a panel/taskbar (in linux/windows). Whenever a window is maximized it orients itself along the panel/taskbar. I wish to achieve the same on Linux...Any provision for it in Qt4? How do i achieve the same?


    Thanks

    Nupul

  2. #2
    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: drawing a toolbar on the desktop.

    Have you already tried anything?

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

    Unhappy Re: drawing a toolbar on the desktop.

    yes wysota, I have created a window with ONE pushbutton inside and set some flags viz
    Qt::FramelessWindowHint and Qt:WindowStaysOnTop but still the other windows when maximised, orient themselves "AROUND" my widget and NOT along the widget's window boundary!!

    Any solutions?


    Thanks

    Nupul

  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: drawing a toolbar on the desktop.

    I don't think it is achievable using plain Qt. It highly depends on the window manager itself.

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

    Red face Re: drawing a toolbar on the desktop.

    I suggest you look at my other thread....I have asked whether it is possible to set window manager hints (NETWM) via Qt esp for those hints NOT highlighted by the qt doc.

    Thanks

    Nupul

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

    Arrow Re: drawing a toolbar on the desktop.

    Hey people,

    If you've scrolled up till here maybe in hope of the answer, then I have some good news for you...

    To achieve this behaviour you need to address a specific window manager functionality using the NETWM hints as per the ICCCM standard....The full details are in the following thread Titled: setting EWM (extended window manager) hints via Qt4 (X11)

    http://www.qtcentre.org/forum/showthread.php?p=8684

    CBM has given the answer to this issue...a big thanks to him

    Nupul

Similar Threads

  1. Problems with QString
    By cyberboy in forum Qt Programming
    Replies: 2
    Last Post: 13th October 2008, 08:18
  2. Toolbar in dockwidget
    By AD in forum Qt Programming
    Replies: 7
    Last Post: 2nd October 2008, 14:34
  3. unable to hide combobox or spinbox in toolbar
    By Sandip in forum Qt Programming
    Replies: 1
    Last Post: 22nd July 2008, 11:52

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.