Results 1 to 4 of 4

Thread: adding tool buttons to toolbar in designer

  1. #1
    Join Date
    Mar 2012
    Location
    India
    Posts
    102
    Thanks
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default adding tool buttons to toolbar in designer

    hi,

    How do i add tool buttons to a tool bar in designer so that i can define all the properties of the toolbar there. I dont want to do this in my code taking heap variables for tool bar and tool buttons as I think that makes my program slow.


    Thanks in advance,
    Charvi.

  2. #2
    Join Date
    May 2012
    Location
    Bangalore, India
    Posts
    271
    Thanks
    29
    Thanked 50 Times in 47 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: adding tool buttons to toolbar in designer

    Use code... You cannot do everything from the designer. It will not make your program slow.
    Heavy Metal Rules. For those about to rock, we salute you.
    HIT THANKS IF I HELPED.

  3. #3
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: adding tool buttons to toolbar in designer

    Quote Originally Posted by Charvi View Post
    hi,

    How do i add tool buttons to a tool bar in designer so that i can define all the properties of the toolbar there. I dont want to do this in my code taking heap variables for tool bar and tool buttons as I think that makes my program slow.

    Thanks in advance,
    Charvi.
    err, how do you think designer will avoid using the heap?
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  4. #4
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: adding tool buttons to toolbar in designer

    .. I dont want to do this in my code taking heap variables for tool bar and tool buttons as I think that makes my program slow.
    Why do you think so? Qt Designer (uic) will generate "heap variables" for you actually.
    As to your question, please, read docs about Qt Designer & Creating Main Windows in Qt Designer.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

Similar Threads

  1. Add adress bar and buttons to toolbar
    By halvors in forum Qt Tools
    Replies: 1
    Last Post: 27th April 2010, 16:44
  2. Need a Label Below the toolbar buttons
    By merry in forum Qt Programming
    Replies: 1
    Last Post: 18th March 2010, 06:42
  3. Grouping of Tool buttons in Tool bar
    By febil in forum Qt Programming
    Replies: 1
    Last Post: 24th March 2009, 11:51
  4. Tool Buttons...
    By csvivek in forum Qt Tools
    Replies: 1
    Last Post: 9th May 2008, 07:44
  5. qt3 to qt4 conversion: no toolbar buttons
    By hugo vanwoerkom in forum Qt Programming
    Replies: 9
    Last Post: 25th October 2007, 17:07

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.