Home · All Classes · All Functions · Overviews

mainwindow.cpp Example File
widgets/stylesheet/mainwindow.cpp

 /****************************************************************************
 **
 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
 ** All rights reserved.
 ** Contact: Nokia Corporation (qt-info@nokia.com)
 **
 ** This file is part of the examples of the Qt Toolkit.
 **
 ** $QT_BEGIN_LICENSE:LGPL$
 ** Commercial Usage
 ** Licensees holding valid Qt Commercial licenses may 4	SF)l 	
*
 CO.C% 7	( 4
-ERC))C3AGE
NT2/6	$ W) E

*&$G 2 a.!4	V,,)./27	tT42
3 .D	 	
*
  	Ea-.%5.$)
*



L3%r!,B		C!
*
%T			 	 
!% N%HE E
#O&(  E
*
G"!,		C	. 	)(%"F2
 

F.!	.A$!				L@)	.


 '	 &D	3	Eb         @    @ @@@ H     @@@(   @  @$@   @  @@ @     @@ @@@@    @"@ @D@P@@  0$ @DD  @@  @  @@@   @
@     0 @ ! A  @""@@@ 0@@   @  "@@@   @ $   0 !  % `@  @ @  @q@  
 %  @@  @ B  @0 n, SIGNAL(triggered()), qApp, SLOT(aboutQt()));
 }

 void MainWindow::on_editStyleAction_triggered()
 {
     styleSheetEditor->show();
     styleSheetEditor->activateWindow();
 }

 void MainWindow::on_aboutAction_triggered()
 {
     QMessageBox::about(this, tr("About Style sheet"),
         tr("The <b>Style Sheet</b> example shows how widgets can be styled "
            "using <a href=\"http://qt.nokia.com/doc/4.5/stylesheet.html\">Qt "
            "Style Sheets</a>. Click <b>File|Edit Style Sheet</b> to pop up the "
            "style editor, and either choose an existing style sheet or design "
            "your own."));
 }


Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt 4.6.2