Results 1 to 8 of 8

Thread: How to hide the mainToolBar automatically?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Re: How to hide the mainToolBar automatically?

    Oh I see...To do so you need to handle mouse events in the regarding ui's controller class. You can do it in various ways.

    1. You can reimplement QWdiget::mouseMoveEvent(QmouseEvent* e).

    2. You can use eventFilter() method along with installEventfilter()

    You can get the current mouse position from both ways above and compare the position if it's on your widget. Then you can show/hide the toolbar.

  2. The following user says thank you to zgulser for this useful post:

    drunknight (3rd December 2013)

  3. #2
    Join Date
    Nov 2013
    Posts
    11
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to hide the mainToolBar automatically?

    Thank you.I will try it in both way: )

Similar Threads

  1. qt creator 2.5 is getting closed automatically..
    By narlapavan in forum Qt Tools
    Replies: 1
    Last Post: 26th August 2012, 14:13
  2. qt creator 2.5 is getting closed automatically..
    By narlapavan in forum Qt Programming
    Replies: 1
    Last Post: 25th August 2012, 23:23
  3. Replies: 3
    Last Post: 5th August 2009, 21:15
  4. How to launch an application automatically ?
    By merry in forum Qt Programming
    Replies: 5
    Last Post: 16th January 2009, 15:26
  5. library not build automatically
    By KoosKoets in forum Qt Programming
    Replies: 1
    Last Post: 26th March 2007, 13:43

Tags for this Thread

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.