Results 1 to 3 of 3

Thread: how to add QToolbar on a widget inherited from QWidget

  1. #1
    Join Date
    May 2010
    Location
    China
    Posts
    66
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Windows

    Post how to add QToolbar on a widget inherited from QWidget

    i create a widget ,and i want to add toolbar on it ,how add it

  2. #2
    Join Date
    Mar 2009
    Location
    Tennessee, US
    Posts
    41
    Thanks
    3
    Thanked 11 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: how to add QToolbar on a widget inherited from QWidget

    Quote Originally Posted by xiongxiongchuan View Post
    i create a widget ,and i want to add toolbar on it ,how add it
    The QToolBar is just a widget. So, you can add a QToolBar to any widget just by calling addWidget from QLayout or by setting the QToolBar parent to your widget.

  3. The following 4 users say thank you to amoswood for this useful post:

    alizadeh91 (29th June 2013), GG2013 (28th August 2013), xiongxiongchuan (9th June 2010), yurp (13th February 2012)

  4. #3
    Join Date
    May 2010
    Location
    China
    Posts
    66
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to add QToolbar on a widget inherited from QWidget

    thank you!

Similar Threads

  1. Get Childs from a Widget in a inherited class
    By Roman in forum Qt Programming
    Replies: 3
    Last Post: 23rd April 2010, 12:36
  2. QToolBar, QWidgetAction, QWidget
    By prof.ebral in forum Newbie
    Replies: 3
    Last Post: 18th February 2010, 19:38
  3. Adding a QWidget to QToolbar
    By qtUser500 in forum Qt Tools
    Replies: 6
    Last Post: 16th October 2009, 18:16
  4. how to add QWidget to QToolBar
    By babu198649 in forum Qt Tools
    Replies: 2
    Last Post: 22nd September 2008, 06:58
  5. get custom widget to inherit qwidget
    By CopyrightPhilly in forum Qt Tools
    Replies: 3
    Last Post: 4th October 2007, 08:58

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.