Home · All Namespaces · All Classes · Main Classes · Grouped Classes · Modules · Functions

browserwidget.ui Example File
demos/sqlbrowser/browserwidget.ui

 <ui version="4.0" >
  <author></author>
  <comment></comment>
  <exportmacro></exportmacro>
  <class>Browser</class>
  <widget class="QWidget" name="Browser" >
   <property name="geometry" >
    <rect>
     <x>0</x>
     <y>0</y>
     <width>765</width>
     <height>515</height>
    </rect>
   </property>
   <property name="windowTitle" >
    <string>Qt SQL Browser</string>
   </property>
   <layout class="QVBoxLayout" >
    <property name="margin" >
     <number>8</number>
    </property>
    <property name="spacing" >
     <number>6</number>
    </property>
    <item>
     <widget class="QSplitter" name="splitter_2" >
      <property name="sizePolicy" >
       <sizepolicy>
        <hsizetype>7</hsizetype>
        <vsizetype>7</vsizetype>
        <horstretch>0</horstretch>
        <verstretch>0</verstretch>
       </sizepolicy>
      </property>
      <property name="orientation" >
       <enum>Qt::Horizontal</enum>
      </property>
      <widget class="ConnectionWidget" name="connectionWidget" >
       <property name="sizePolicy" >
        <sizepolicy>
         <hsizetype>13</hsizetype>
         <vsizetype>7</vsizetype>
         <horstretch>1</horstretch>
         <verstretch>0</verstretch>
        </sizepolicy>
       </property>
      </widget>
      <widget class="QTableView" name="table" >
       <property name="sizePolicy" >
        <sizepolicy>
         <hsizetype>7</hsizetype>
         <vsizetype>7</vsizetype>
         <horstretch>2</horstretch>
         <verstretch>0</verstretch>
        </sizepolicy>
       </property>
       <property name="contextMenuPolicy" >
        <enum>Qt::ActionsContextMenu</enum>
       </property>
       <property name="selectionBehavior" >
        <enum>QAbstractItemView::SelectRows</enum>
       </property>
      </widget>
     </widget>
    </item>
    <item>
     <widget class="QGroupBox" name="groupBox" >
      <property name="sizePolicy" >
       <sizepolicy>
        <hsizetype>5</hsizetype>
        <vsizetype>3</vsizetype>
        <horstretch>0</horstretch>
        <verstretch>0</verstretch>
       </sizepolicy>
      </property>
      <property name="maximumSize" >
       <size>
        <width>16777215</width>
        <height>180</height>
       </size>
      </property>
      <property name="title" >
       <string>SQL Query</string>
      </property>
      <layout class="QVBoxLayout" >
       <property name="margin" >
        <number>9</number>
       </property>
       <property name="spacing" >
        <number>6</number>
       </property>
       <item>
        <widget class="QTextEdit" name="sqlEdit" >
         <property name="sizePolicy" >
          <sizepolicy>
           <hsizetype>7</hsizetype>
           <vsizetype>3</vsizetype>
           <horstretch>0</horstretch>
           <verstretch>0</verstretch>
          </sizepolicy>
         </property>
         <property name="minimumSize" >
          <size>
           <width>0</width>
           <height>18</height>
          </size>
         </property>
         <property name="baseSize" >
          <size>
           <width>0</width>
           <height>120</height>
          </size>
         </property>
        </widget>
       </item>
       <item>
        <layout class="QHBoxLayout" >
         <property name="margin" >
          <number>1</number>
         </property>
         <property name="spacing" >
          <number>6</number>
         </property>
         <item>
          <spacer>
           <property name="orientation" >
            <enum>Qt::Horizontal</enum>
           </property>
           <property name="sizeHint" >
            <size>
             <width>40</width>
             <height>20</height>
            </size>
           </property>
          </spacer>
         </item>
         <item>
          <widget class="QPushButton" name="clearButton" >
           <property name="text" >
            <string>&amp;Clear</string>
           </property>
          </widget>
         </item>
         <item>
          <widget class="QPushButton" name="submitButton" >
           <property name="text" >
            <string>&amp;Submit</string>
           </property>
          </widget>
         </item>
        </layout>
       </item>
      </layout>
     </widget>
    </item>
   </layout>
   <action name="insertRowAction" >
    <property name="enabled" >
     <bool>false</bool>
    </property>
    <property name="text" >
     <string>&amp;Insert Row</string>
    </property>
    <property name="statusTip" >
     <string>Inserts a new Row</string>
    </property>
   </action>
   <action name="deleteRowAction" >
    <property name="enabled" >
     <bool>false</bool>
    </property>
    <property name="text" >
     <string>&amp;Delete Row</string>
    </property>
    <property name="statusTip" >
     <string>Deletes the current Row</string>
    </property>
   </action>
  </widget>
  <pixmapfunction></pixmapfunction>
  <customwidgets>
   <customwidget>
    <class>ConnectionWidget</class>
    <extends>QTreeView</extends>
    <header>connectionwidget.h</header>
    <container>0</container>
    <pixmap></pixmap>
   </customwidget>
  </customwidgets>
  <tabstops>
   <tabstop>sqlEdit</tabstop>
   <tabstop>clearButton</tabstop>
   <tabstop>submitButton</tabstop>
   <tabstop>connectionWidget</tabstop>
   <tabstop>table</tabstop>
  </tabstops>
  <resources/>
  <connections/>
 </ui>


Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt 4.5.1