[Qt-interest] QToolButom - Icon problem and resize problem

Reece Dunn msclrhd at googlemail.com
Thu Jun 17 22:06:23 CEST 2010


On 17 June 2010 19:19, Lucas Pereira Caixeta <lpcnew at gmail.com> wrote:
> Guys, I have a toolbutom with an icon in ... but the icon is small ... how
> do I resize it?

Assuming that this is a QToolButton that you are referring to...

	QToolButton *button = new QToolButton;
	button->setIconSize(QSize(24, 24));
	...

> Ah! and how do I let a person not resize a window?

Not sure, but you'll probably need to look at/override override some
of QWidget's:
	maximumSize : QSize
	maximumWidth : int
	minimized : const bool
	minimumHeight : int
	minimumSize : QSize
	minimumSizeHint : const QSize
	minimumWidth : int
	sizeHint : const QSize
and friends.

- Reece



More information about the Qt-interest-old mailing list