Results 1 to 4 of 4

Thread: QToolBar icon size

  1. #1
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default QToolBar icon size

    Hi,

    I'm trying to change the icon size of a ToolBar but it seems to not work.

    Qt Code:
    1. myToolBar->setIconSize(QSize(48,48));
    To copy to clipboard, switch view to plain text mode 

    Also I have tryied this in the QMainWindow class but nothing happens.

    Qt Code:
    1. setIconSize(QSize(48,48));
    To copy to clipboard, switch view to plain text mode 

    I'm using Qt 4.1.0 on Windows XP

    Thanks,
    Òscar Llarch i Galán

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QToolBar icon size

    Its working fine for me in windows Xp and Qt 4.2.0

    try it with newer version of Qt

  3. #3
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QToolBar icon size

    Hi,

    Ok, will download and try it.

    Thanks,
    Òscar Llarch i Galán

  4. #4
    Join Date
    Jan 2006
    Location
    Innsbruck, Austria
    Posts
    62
    Thanks
    10
    Thanked 7 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QToolBar icon size

    It's a bug in Qt 4.1.0. It was fixed in 4.1.1:

    http://www.trolltech.com/developer/n...changes-4.1.1/

Similar Threads

  1. Resizing a QDialog to the content size
    By Nyphel in forum Qt Programming
    Replies: 8
    Last Post: 15th March 2007, 08:16
  2. Replies: 1
    Last Post: 24th October 2006, 16:40
  3. Difficult:Dynamic Icon size change?!?
    By nupul in forum Qt Programming
    Replies: 4
    Last Post: 10th April 2006, 09:39
  4. tool bar icon size looking small???
    By darpan in forum Qt Tools
    Replies: 7
    Last Post: 31st March 2006, 16:38
  5. Qt 4.1.1 linker warnings
    By Matt Smith in forum Installation and Deployment
    Replies: 0
    Last Post: 26th February 2006, 22:14

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.