Results 1 to 2 of 2

Thread: QToolBar go away! On startup anyway.

  1. #1
    Join Date
    Jan 2006
    Posts
    70
    Thanks
    13
    Thanked 5 Times in 5 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default QToolBar go away! On startup anyway.

    This should be a simple one. I have toolbars that the toggleViewActions are listed in a MenuBar item called view.

    How can i make the toolbars view action toggled to not showing at the application start. So that if someone wants to see/use the toolbar they must turn it on via the view menu.

    I've tried:

    emit _tbar->toggleViewAction()->toggle();

    which did not work.

  2. #2
    Join Date
    Jan 2006
    Posts
    70
    Thanks
    13
    Thanked 5 Times in 5 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QToolBar go away! On startup anyway.

    Figured it out.

    _tbar->setHidden(true);

    Hope maybe this helps someone else anyway.

Similar Threads

  1. MacOS and QToolBar?
    By Dale in forum Qt Programming
    Replies: 4
    Last Post: 26th May 2009, 06:45
  2. QToolBar location changed
    By OriginalCopy in forum Qt Programming
    Replies: 3
    Last Post: 3rd November 2007, 11:17
  3. Various icon sizes for QToolButtons on QToolbar
    By Erlendhg in forum Qt Programming
    Replies: 4
    Last Post: 30th June 2007, 18:35
  4. How Do I Float a QToolBar?
    By dvmorris in forum Qt Programming
    Replies: 7
    Last Post: 29th April 2007, 19:01
  5. Insert separate QToolBar into QMainWindow
    By YuriyRusinov in forum Qt Programming
    Replies: 3
    Last Post: 24th April 2006, 10:37

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.