Err? You want it to be enabled or disabled?
Auto raise is disabled (false) by default. You can enable it by setting it to true.
	
	#include <QtGui>
 
int main(int argc, char *argv[])
{
 
	// button 1 (on the left), auto raise disabled
 
	// button 2 (on the right), auto raise enabled
	b2->setAutoRaise(true);
 
	s.addWidget(b1);
	s.addWidget(b2);
	s.show();
 
	a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
	return a.exec();
}
        #include <QtGui>
int main(int argc, char *argv[])
{
	QApplication a(argc, argv);
	
	// button 1 (on the left), auto raise disabled
	QToolButton* b1 = new QToolButton;
	// button 2 (on the right), auto raise enabled
	QToolButton* b2 = new QToolButton;
	b2->setAutoRaise(true);
	QSplitter s;
	s.addWidget(b1);
	s.addWidget(b2);
	s.show();
	a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
	return a.exec();
}
To copy to clipboard, switch view to plain text mode 
  
				
			
Bookmarks