Results 1 to 4 of 4

Thread: Custom Toolbar

  1. #1
    Join Date
    Feb 2007
    Posts
    31
    Thanks
    11

    Default Custom Toolbar

    Hi,

    I've been asked to extend a legacy Qt 3.2 app by adding a toolbar with six buttons having text labels. I think that I want to use a QToolbar having a QButtonGroup containing the QToolButtons. Before I spend a lot of time looking for how to implement this (the Qt documentation shows how to implement standard toolbars with actions (not buttons) like fileOpenAction, but nothing I saw was close to what I want to do), I thought that I'd ask this forum if I'm on the right track with my design idea.

    All comments are appreciated.

    Thank you,
    Jim Brown

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Custom Toolbar

    What's wrong with QActions? Anyway you can create widgets on the QToolbar just by setting the toolbar as their parent.

  3. The following user says thank you to jacek for this useful post:

    JimBrown (13th December 2007)

  4. #3
    Join Date
    Feb 2007
    Posts
    31
    Thanks
    11

    Default Re: Custom Toolbar

    Quote Originally Posted by jacek View Post
    What's wrong with QActions? Anyway you can create widgets on the QToolbar just by setting the toolbar as their parent.
    Thanks for the reply. I used QActions in a QActionGroup as a test, but I can't get them to display the text label instead of an icon. Do you know of a way?

  5. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Custom Toolbar

    J-P Nurmi

  6. The following user says thank you to jpn for this useful post:

    JimBrown (14th December 2007)

Similar Threads

  1. Custom proxy model issue
    By Khal Drogo in forum Qt Programming
    Replies: 13
    Last Post: 30th November 2007, 12:41
  2. Create a Toolbar on a Subclassed Textedit?
    By c_07 in forum Qt Programming
    Replies: 5
    Last Post: 12th October 2007, 18:17
  3. custom plug-in widget in another custom plug-in widget.
    By MrGarbage in forum Qt Programming
    Replies: 6
    Last Post: 27th August 2007, 15:38
  4. Adding a toolbar to a TableWidget
    By Walter in forum Qt Programming
    Replies: 2
    Last Post: 1st July 2007, 21:13
  5. Replies: 1
    Last Post: 5th March 2007, 20:50

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.