Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 1dd17e0d683ef79b4bb6872bbf359d7f > files > 5165

qt4-doc-4.8.7-26.2.mga7.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qdesktopwidget.qdoc -->
  <title>Qt 4.8: QDesktopWidget Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/style.css" />
  <script src="scripts/jquery.js" type="text/javascript"></script>
  <script src="scripts/functions.js" type="text/javascript"></script>
  <link rel="stylesheet" type="text/css" href="style/superfish.css" />
  <link rel="stylesheet" type="text/css" href="style/narrow.css" />
  <!--[if IE]>
<meta name="MSSmartTagsPreventParsing" content="true">
<meta http-equiv="imagetoolbar" content="no">
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie6.css">
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie7.css">
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="style/style_ie8.css">
<![endif]-->

<script src="scripts/superfish.js" type="text/javascript"></script>
<script src="scripts/narrow.js" type="text/javascript"></script>

</head>
<body class="" onload="CheckEmptyAndLoadList();">
 <div class="header" id="qtdocheader">
    <div class="content"> 
    <div id="nav-logo">
      <a href="index.html">Home</a></div>
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
    <div id="narrowsearch"></div>
    <div id="nav-topright">
      <ul>
        <li class="nav-topright-home"><a href="http://qt.digia.com/">Qt HOME</a></li>
        <li class="nav-topright-dev"><a href="http://qt-project.org/">DEV</a></li>
        <li class="nav-topright-doc nav-topright-doc-active"><a href="http://qt-project.org/doc/">
          DOC</a></li>
        <li class="nav-topright-blog"><a href="http://blog.qt.digia.com/">BLOG</a></li>
      </ul>
    </div>
    <div id="shortCut">
      <ul>
        <li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.8</a></span></li>
        <li class="shortCut-topleft-active"><a href="http://qt-project.org/doc/">ALL VERSIONS        </a></li>
      </ul>
     </div>
 <ul class="sf-menu" id="narrowmenu"> 
             <li><a href="#">API Lookup</a> 
                 <ul> 
                     <li><a href="classes.html">Class index</a></li> 
           <li><a href="functions.html">Function index</a></li> 
           <li><a href="modules.html">Modules</a></li> 
           <li><a href="namespaces.html">Namespaces</a></li> 
           <li><a href="qtglobal.html">Global Declarations</a></li> 
           <li><a href="qdeclarativeelements.html">QML elements</a></li> 
             </ul> 
             </li> 
             <li><a href="#">Qt Topics</a> 
                 <ul> 
                        <li><a href="qt-basic-concepts.html">Programming with Qt</a></li>  
                        <li><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li>  
                        <li><a href="qt-gui-concepts.html">UI Design with Qt</a></li>  
                        <li><a href="supported-platforms.html">Supported Platforms</a></li>  
                        <li><a href="technology-apis.html">Qt and Key Technologies</a></li>  
                        <li><a href="best-practices.html">How-To's and Best Practices</a></li>  
              </ul> 
                 </li> 
                 <li><a href="#">Examples</a> 
                     <ul> 
                       <li><a href="all-examples.html">Examples</a></li> 
                       <li><a href="tutorials.html">Tutorials</a></li> 
                       <li><a href="demos.html">Demos</a></li> 
                       <li><a href="qdeclarativeexamples.html">QML Examples</a></li> 
                </ul> 
                     </li> 
                 </ul> 
    </div>
  </div>
  <div class="wrapper">
    <div class="hd">
      <span></span>
    </div>
    <div class="bd group">
      <div class="sidebar">
        <div class="searchlabel">
          Search index:</div>
        <div class="search" id="sidebarsearch">
          <form id="qtdocsearch" action="" onsubmit="return false;">
            <fieldset>
              <input type="text" name="searchstring" id="pageType" value="" />
 <div id="resultdialog"> 
 <a href="#" id="resultclose">Close</a> 
 <p id="resultlinks" class="all"><a href="#" id="showallresults">All</a> | <a href="#" id="showapiresults">API</a> | <a href="#" id="showarticleresults">Articles</a> | <a href="#" id="showexampleresults">Examples</a></p> 
 <p id="searchcount" class="all"><span id="resultcount"></span><span id="apicount"></span><span id="articlecount"></span><span id="examplecount"></span>&nbsp;results:</p> 
 <ul id="resultlist" class="all"> 
 </ul> 
 </div> 
            </fieldset>
          </form>
        </div>
        <div class="box first bottombar" id="lookup">
          <h2 title="API Lookup"><span></span>
            API Lookup</h2>
          <div  id="list001" class="list">
          <ul id="ul001" >
              <li class="defaultLink"><a href="classes.html">Class index</a></li>
              <li class="defaultLink"><a href="functions.html">Function index</a></li>
              <li class="defaultLink"><a href="modules.html">Modules</a></li>
              <li class="defaultLink"><a href="namespaces.html">Namespaces</a></li>
              <li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li>
              <li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li>
            </ul> 
          </div>
        </div>
        <div class="box bottombar" id="topics">
          <h2 title="Qt Topics"><span></span>
            Qt Topics</h2>
          <div id="list002" class="list">
            <ul id="ul002" >
               <li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li> 
               <li class="defaultLink"><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li> 
               <li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li> 
               <li class="defaultLink"><a href="supported-platforms.html">Supported Platforms</a></li>  
               <li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li> 
               <li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li> 
            </ul>  
          </div>
        </div>
        <div class="box" id="examples">
          <h2 title="Examples"><span></span>
            Examples</h2>
          <div id="list003" class="list">
        <ul id="ul003">
              <li class="defaultLink"><a href="all-examples.html">Examples</a></li>
              <li class="defaultLink"><a href="tutorials.html">Tutorials</a></li>
              <li class="defaultLink"><a href="demos.html">Demos</a></li>
              <li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li>
            </ul> 
          </div>
        </div>
      </div>
      <div class="wrap">
        <div class="toolbar">
          <div class="breadcrumb toolblock">
            <ul>
              <li class="first"><a href="index.html">Home</a></li>
              <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtgui.html">QtGui</a></li>
<li>QDesktopWidget</li>
            </ul>
          </div>
          <div class="toolbuttons toolblock">
            <ul>
              <li id="smallA" class="t_button">A</li>
              <li id="medA" class="t_button active">A</li>
              <li id="bigA" class="t_button">A</li>
              <li id="print" class="t_button"><a href="javascript:this.print();">
                <span>Print</span></a></li>
            </ul>
        </div>
        </div>
        <div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#protected-functions">Protected Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
<li class="level2"><a href="#obtaining-a-desktop-widget">Obtaining a Desktop Widget</a></li>
<li class="level2"><a href="#screen-geometry">Screen Geometry</a></li>
<li class="level2"><a href="#use-of-the-primary-screen">Use of the Primary Screen</a></li>
</ul>
</div>
<h1 class="title">QDesktopWidget Class Reference</h1>
<!-- $$$QDesktopWidget-brief -->
<p>The QDesktopWidget class provides access to screen information on multi-head systems. <a href="#details">More...</a></p>
<!-- @@@QDesktopWidget -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QDesktopWidget&gt;</span></pre><p><b>Inherits: </b><a href="qwidget.html">QWidget</a>.</p>
<ul>
<li><a href="qdesktopwidget-members.html">List of all members, including inherited members</a></li>
<li><a href="qdesktopwidget-obsolete.html">Obsolete members</a></li>
</ul>
<a name="properties"></a>
<h2>Properties</h2>
<ul>
<li class="fn"><b><a href="qdesktopwidget.html#primaryScreen-prop">primaryScreen</a></b> : const int</li>
<li class="fn"><b><a href="qdesktopwidget.html#screenCount-prop">screenCount</a></b> : const int</li>
<li class="fn"><b><a href="qdesktopwidget.html#virtualDesktop-prop">virtualDesktop</a></b> : const bool</li>
</ul>
<ul>
<li class="fn">58 properties inherited from <a href="qwidget.html#properties">QWidget</a></li>
<li class="fn">1 property inherited from <a href="qobject.html#properties">QObject</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> const QRect </td><td class="memItemRight bottomAlign"><b><a href="qdesktopwidget.html#availableGeometry">availableGeometry</a></b> ( int <i>screen</i> = -1 ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const QRect </td><td class="memItemRight bottomAlign"><b><a href="qdesktopwidget.html#availableGeometry-2">availableGeometry</a></b> ( const QWidget * <i>widget</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const QRect </td><td class="memItemRight bottomAlign"><b><a href="qdesktopwidget.html#availableGeometry-3">availableGeometry</a></b> ( const QPoint &amp; <i>p</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qdesktopwidget.html#virtualDesktop-prop">isVirtualDesktop</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qdesktopwidget.html#primaryScreen-prop">primaryScreen</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWidget * </td><td class="memItemRight bottomAlign"><b><a href="qdesktopwidget.html#screen">screen</a></b> ( int <i>screen</i> = -1 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qdesktopwidget.html#screenCount-prop">screenCount</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const QRect </td><td class="memItemRight bottomAlign"><b><a href="qdesktopwidget.html#screenGeometry">screenGeometry</a></b> ( int <i>screen</i> = -1 ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const QRect </td><td class="memItemRight bottomAlign"><b><a href="qdesktopwidget.html#screenGeometry-2">screenGeometry</a></b> ( const QWidget * <i>widget</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const QRect </td><td class="memItemRight bottomAlign"><b><a href="qdesktopwidget.html#screenGeometry-3">screenGeometry</a></b> ( const QPoint &amp; <i>p</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qdesktopwidget.html#screenNumber">screenNumber</a></b> ( const QWidget * <i>widget</i> = 0 ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qdesktopwidget.html#screenNumber-2">screenNumber</a></b> ( const QPoint &amp; <i>point</i> ) const</td></tr>
</table>
<ul>
<li class="fn">221 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
<li class="fn">29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
<li class="fn">13 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
</ul>
<a name="signals"></a>
<h2>Signals</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdesktopwidget.html#resized">resized</a></b> ( int <i>screen</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdesktopwidget.html#screenCountChanged">screenCountChanged</a></b> ( int <i>newCount</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdesktopwidget.html#workAreaResized">workAreaResized</a></b> ( int <i>screen</i> )</td></tr>
</table>
<ul>
<li class="fn">1 signal inherited from <a href="qwidget.html#signals">QWidget</a></li>
<li class="fn">1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
</ul>
<a name="reimplemented-protected-functions"></a>
<h2>Reimplemented Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qdesktopwidget.html#resizeEvent">resizeEvent</a></b> ( QResizeEvent * <i>event</i> )</td></tr>
</table>
<ul>
<li class="fn">37 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</a></li>
<li class="fn">8 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
<li class="fn">1 protected function inherited from <a href="qpaintdevice.html#protected-functions">QPaintDevice</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">19 public slots inherited from <a href="qwidget.html#public-slots">QWidget</a></li>
<li class="fn">1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
<li class="fn">4 static public members inherited from <a href="qwidget.html#static-public-members">QWidget</a></li>
<li class="fn">7 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
<li class="fn">37 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</a></li>
<li class="fn">8 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
<li class="fn">1 protected function inherited from <a href="qpaintdevice.html#protected-functions">QPaintDevice</a></li>
<li class="fn">1 protected slot inherited from <a href="qwidget.html#protected-slots">QWidget</a></li>
</ul>
<a name="details"></a>
<!-- $$$QDesktopWidget-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QDesktopWidget class provides access to screen information on multi-head systems.</p>
<p>Systems with more than one graphics card and monitor can manage the physical screen space available either as multiple desktops, or as a large virtual desktop.</p>
<p>This class provides information about the user's desktop, such as its total size, number of screens, the geometry of each screen, and whether they are configured as separate desktops or a single virtual desktop.</p>
<p>Widgets provided by Qt use this class to place tooltips, menus and dialog boxes on the correct screen for their parent or application widgets. Applications can use this class to obtain information that can be used to save window positions, or to place child widgets and dialogs on one particular screen.</p>
<a name="obtaining-a-desktop-widget"></a>
<h3>Obtaining a Desktop Widget</h3>
<p>The <a href="qapplication.html#desktop">QApplication::desktop</a>() function is used to get an instance of QDesktopWidget.</p>
<p>The widget's <a href="qdesktopwidget.html#screenGeometry">screenGeometry</a>() function provides information about the geometry of the available screens with. The number of screens available is returned by <a href="qdesktopwidget.html#screenCount-prop">screenCount</a>, and the <a href="qdesktopwidget.html#screenCountChanged">screenCountChanged</a>() signal is emitted when screens are added or removed. The screen number that a particular point or widget is located in is returned by <a href="qdesktopwidget.html#screenNumber">screenNumber</a>().</p>
<a name="screen-geometry"></a>
<h3>Screen Geometry</h3>
<p>To obtain the dimensions of a particular screen, call the <a href="qdesktopwidget.html#screenGeometry">screenGeometry</a>() function. On some desktop environments, not all of the screen is available for applications to use; for example, an application dock or menu bar may take up some space. Use the <a href="qdesktopwidget.html#availableGeometry">availableGeometry</a>() function to obtain the available area for applications.</p>
<p>QDesktopWidget also inherits the <a href="qwidget.html">QWidget</a> properties, <a href="qwidget.html#width-prop">width</a>() and <a href="qwidget.html#height-prop">height</a>(), which specify the size of the desktop. However, for desktops with multiple screens, the size of the desktop is the union of all the screen sizes, so <a href="qwidget.html#width-prop">width</a>() and <a href="qwidget.html#height-prop">height</a>() should <i>not</i> be used for computing the size of a widget to be placed on one of the screens.</p>
<p>On systems that are configured to use the available screens as a single, large virtual desktop, the <a href="qdesktopwidget.html#virtualDesktop-prop">virtualDesktop</a> property will be set to true. In this case, the widget's size is usually the size of the bounding rectangle of all the screens.</p>
<a name="use-of-the-primary-screen"></a>
<h3>Use of the Primary Screen</h3>
<p>For an application, the screen where the main widget resides is the primary screen. This is stored in the <a href="qdesktopwidget.html#primaryScreen-prop">primaryScreen</a> property. All windows opened in the context of the application should be constrained to the boundaries of the primary screen; for example, it would be inconvenient if a dialog box popped up on a different screen, or split over two screens.</p>
<p class="centerAlign"><img src="images/qdesktopwidget.png" alt="Managing Multiple Screens" /></p><p>In the illustration above, Application One's primary screen is screen 0, and App Two's primary screen is screen 1.</p>
</div>
<p><b>See also </b><a href="qapplication.html">QApplication</a>, <a href="qapplication.html#desktop">QApplication::desktop</a>(), and <a href="qx11info.html#appRootWindow">QX11Info::appRootWindow</a>().</p>
<!-- @@@QDesktopWidget -->
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$primaryScreen-prop$$$primaryScreen -->
<h3 class="fn"><a name="primaryScreen-prop"></a><span class="name">primaryScreen</span> : const <span class="type">int</span></h3>
<p>This property holds the index of the screen that is configured to be the primary screen on the system.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>primaryScreen</b></span> () const</td></tr>
</table>
<!-- @@@primaryScreen -->
<!-- $$$screenCount-prop$$$screenCount$$$screenCountChangedint -->
<h3 class="fn"><a name="screenCount-prop"></a><span class="name">screenCount</span> : const <span class="type">int</span></h3>
<p>This property holds the number of screens currently available on the system.</p>
<p>This property was introduced in Qt 4.6.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>screenCount</b></span> () const</td></tr>
</table>
<p><b>Notifier signal:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qdesktopwidget.html#screenCountChanged">screenCountChanged</a></b></span> ( int <i>newCount</i> )</td></tr>
</table>
<p><b>See also </b><a href="qdesktopwidget.html#screenCountChanged">screenCountChanged</a>().</p>
<!-- @@@screenCount -->
<!-- $$$virtualDesktop-prop$$$isVirtualDesktop -->
<h3 class="fn"><a name="virtualDesktop-prop"></a><span class="name">virtualDesktop</span> : const <span class="type">bool</span></h3>
<p>This property holds if the system manages the available screens in a virtual desktop.</p>
<p>For virtual desktops, <a href="qdesktopwidget.html#screen">screen</a>() will always return the same widget. The size of the virtual desktop is the size of this desktop widget.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isVirtualDesktop</b></span> () const</td></tr>
</table>
<!-- @@@virtualDesktop -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$availableGeometry[overload1]$$$availableGeometryint -->
<h3 class="fn"><a name="availableGeometry"></a>const <span class="type"><a href="qrect.html">QRect</a></span> QDesktopWidget::<span class="name">availableGeometry</span> ( <span class="type">int</span> <i>screen</i> = -1 ) const</h3>
<p>Returns the available geometry of the screen with index <i>screen</i>. What is available will be subrect of <a href="qdesktopwidget.html#screenGeometry">screenGeometry</a>() based on what the platform decides is available (for example excludes the dock and menu bar on Mac OS X, or the task bar on Windows). The default screen is used if <i>screen</i> is -1.</p>
<p><b>Note:</b> In Symbian devices the available geometry reported by <a href="qdesktopwidget.html">QDesktopWidget</a> is not guaranteed to be correct at the time the geometry change resize event is passed to widgets. The correct way to listen for available geometry changes is to connect to the <a href="qdesktopwidget.html#workAreaResized">workAreaResized</a>() signal of <a href="qdesktopwidget.html">QDesktopWidget</a>.</p>
<p><b>See also </b><a href="qdesktopwidget.html#screenNumber">screenNumber</a>() and <a href="qdesktopwidget.html#screenGeometry">screenGeometry</a>().</p>
<!-- @@@availableGeometry -->
<!-- $$$availableGeometry$$$availableGeometryconstQWidget* -->
<h3 class="fn"><a name="availableGeometry-2"></a>const <span class="type"><a href="qrect.html">QRect</a></span> QDesktopWidget::<span class="name">availableGeometry</span> ( const <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>widget</i> ) const</h3>
<p>This is an overloaded function.</p>
<p>Returns the available geometry of the screen which contains <i>widget</i>.</p>
<p><b>See also </b><a href="qdesktopwidget.html#screenGeometry">screenGeometry</a>().</p>
<!-- @@@availableGeometry -->
<!-- $$$availableGeometry$$$availableGeometryconstQPoint& -->
<h3 class="fn"><a name="availableGeometry-3"></a>const <span class="type"><a href="qrect.html">QRect</a></span> QDesktopWidget::<span class="name">availableGeometry</span> ( const <span class="type"><a href="qpoint.html">QPoint</a></span> &amp; <i>p</i> ) const</h3>
<p>This is an overloaded function.</p>
<p>Returns the available geometry of the screen which contains <i>p</i>.</p>
<p><b>See also </b><a href="qdesktopwidget.html#screenGeometry">screenGeometry</a>().</p>
<!-- @@@availableGeometry -->
<!-- $$$resizeEvent[overload1]$$$resizeEventQResizeEvent* -->
<h3 class="fn"><a name="resizeEvent"></a><span class="type">void</span> QDesktopWidget::<span class="name">resizeEvent</span> ( <span class="type"><a href="qresizeevent.html">QResizeEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#resizeEvent">QWidget::resizeEvent</a>().</p>
<!-- @@@resizeEvent -->
<!-- $$$resized[overload1]$$$resizedint -->
<h3 class="fn"><a name="resized"></a><span class="type">void</span> QDesktopWidget::<span class="name">resized</span> ( <span class="type">int</span> <i>screen</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the size of <i>screen</i> changes.</p>
<!-- @@@resized -->
<!-- $$$screen[overload1]$$$screenint -->
<h3 class="fn"><a name="screen"></a><span class="type"><a href="qwidget.html">QWidget</a></span> * QDesktopWidget::<span class="name">screen</span> ( <span class="type">int</span> <i>screen</i> = -1 )</h3>
<p>Returns a widget that represents the screen with index <i>screen</i> (a value of -1 means the default screen).</p>
<p>If the system uses a virtual desktop, the returned widget will have the geometry of the entire virtual desktop; i.e&#x2e;, bounding every <i>screen</i>.</p>
<p><b>See also </b><a href="qdesktopwidget.html#primaryScreen-prop">primaryScreen</a>, <a href="qdesktopwidget.html#screenCount-prop">screenCount</a>, and <a href="qdesktopwidget.html#virtualDesktop-prop">virtualDesktop</a>.</p>
<!-- @@@screen -->
<!-- $$$screenCountChanged[overload1]$$$screenCountChangedint -->
<h3 class="fn"><a name="screenCountChanged"></a><span class="type">void</span> QDesktopWidget::<span class="name">screenCountChanged</span> ( <span class="type">int</span> <i>newCount</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the number of screens changes to <i>newCount</i>.</p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also </b><a href="qdesktopwidget.html#screenCount-prop">screenCount</a>.</p>
<!-- @@@screenCountChanged -->
<!-- $$$screenGeometry[overload1]$$$screenGeometryint -->
<h3 class="fn"><a name="screenGeometry"></a>const <span class="type"><a href="qrect.html">QRect</a></span> QDesktopWidget::<span class="name">screenGeometry</span> ( <span class="type">int</span> <i>screen</i> = -1 ) const</h3>
<p>Returns the geometry of the screen with index <i>screen</i>. The default screen is used if <i>screen</i> is -1.</p>
<p><b>Note:</b> In Symbian devices the screen geometry reported by <a href="qdesktopwidget.html">QDesktopWidget</a> is not guaranteed to be correct at the time the geometry change resize event is passed to widgets. The correct way to listen for screen geometry changes is to connect to the <a href="qdesktopwidget.html#resized">resized</a>() signal of <a href="qdesktopwidget.html">QDesktopWidget</a>.</p>
<p><b>See also </b><a href="qdesktopwidget.html#screenNumber">screenNumber</a>().</p>
<!-- @@@screenGeometry -->
<!-- $$$screenGeometry$$$screenGeometryconstQWidget* -->
<h3 class="fn"><a name="screenGeometry-2"></a>const <span class="type"><a href="qrect.html">QRect</a></span> QDesktopWidget::<span class="name">screenGeometry</span> ( const <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>widget</i> ) const</h3>
<p>This is an overloaded function.</p>
<p>Returns the geometry of the screen which contains <i>widget</i>.</p>
<!-- @@@screenGeometry -->
<!-- $$$screenGeometry$$$screenGeometryconstQPoint& -->
<h3 class="fn"><a name="screenGeometry-3"></a>const <span class="type"><a href="qrect.html">QRect</a></span> QDesktopWidget::<span class="name">screenGeometry</span> ( const <span class="type"><a href="qpoint.html">QPoint</a></span> &amp; <i>p</i> ) const</h3>
<p>This is an overloaded function.</p>
<p>Returns the geometry of the screen which contains <i>p</i>.</p>
<!-- @@@screenGeometry -->
<!-- $$$screenNumber[overload1]$$$screenNumberconstQWidget* -->
<h3 class="fn"><a name="screenNumber"></a><span class="type">int</span> QDesktopWidget::<span class="name">screenNumber</span> ( const <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>widget</i> = 0 ) const</h3>
<p>Returns the index of the screen that contains the largest part of <i>widget</i>, or -1 if the widget not on a screen.</p>
<p><b>See also </b><a href="qdesktopwidget.html#primaryScreen-prop">primaryScreen</a>.</p>
<!-- @@@screenNumber -->
<!-- $$$screenNumber$$$screenNumberconstQPoint& -->
<h3 class="fn"><a name="screenNumber-2"></a><span class="type">int</span> QDesktopWidget::<span class="name">screenNumber</span> ( const <span class="type"><a href="qpoint.html">QPoint</a></span> &amp; <i>point</i> ) const</h3>
<p>This is an overloaded function.</p>
<p>Returns the index of the screen that contains the <i>point</i>, or the screen which is the shortest distance from the <i>point</i>.</p>
<p><b>See also </b><a href="qdesktopwidget.html#primaryScreen-prop">primaryScreen</a>.</p>
<!-- @@@screenNumber -->
<!-- $$$workAreaResized[overload1]$$$workAreaResizedint -->
<h3 class="fn"><a name="workAreaResized"></a><span class="type">void</span> QDesktopWidget::<span class="name">workAreaResized</span> ( <span class="type">int</span> <i>screen</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the work area available on <i>screen</i> changes.</p>
<!-- @@@workAreaResized -->
</div>
      </div>
    </div>
    </div> 
    <div class="ft">
      <span></span>
    </div>
  </div> 
  <div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2015 The Qt Company Ltd.
      Documentation contributions included herein are the copyrights of
      their respective owners.</p>
    <br />
    <p>
      The documentation provided herein is licensed under the terms of the
      <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
      License version 1.3</a> as published by the Free Software Foundation.</p>
    <p>
      Documentation sources may be obtained from <a href="http://www.qt-project.org">
      www.qt-project.org</a>.</p>
    <br />
    <p>
      Qt and respective logos are trademarks of The Qt Company Ltd 
      in Finland and/or other countries worldwide. All other trademarks are property
      of their respective owners. <a title="Privacy Policy"
      href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
  </div>

  <script src="scripts/functions.js" type="text/javascript"></script>
</body>
</html>