Bo Peng wrote: >> Like this? This time also the ui file. >> >
With attached ui file I get attached dialog. Does it still not work? Peter
<ui version="4.0" > <class>QListingsUi</class> <widget class="QDialog" name="QListingsUi" > <property name="windowModality" > <enum>Qt::ApplicationModal</enum> </property> <property name="geometry" > <rect> <x>0</x> <y>0</y> <width>448</width> <height>417</height> </rect> </property> <property name="windowTitle" > <string>Listing</string> </property> <property name="sizeGripEnabled" > <bool>true</bool> </property> <layout class="QVBoxLayout" > <item> <layout class="QVBoxLayout" > <property name="spacing" > <number>6</number> </property> <property name="leftMargin" > <number>0</number> </property> <property name="topMargin" > <number>0</number> </property> <property name="rightMargin" > <number>0</number> </property> <property name="bottomMargin" > <number>0</number> </property> <item> <widget class="QCheckBox" name="inlineCB" > <property name="text" > <string>Inlined listing (\lstinline)</string> </property> </widget> </item> <item> <widget class="QGroupBox" name="listingsGB" > <property name="sizePolicy" > <sizepolicy vsizetype="Expanding" hsizetype="Expanding" > <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="title" > <string>Parameters</string> </property> <layout class="QHBoxLayout" > <item> <widget class="QTextBrowser" name="listingsTB" > <property name="cursor" stdset="0" > <cursorShape>ForbiddenCursor</cursorShape> </property> <property name="acceptDrops" > <bool>false</bool> </property> <property name="frameShape" > <enum>QFrame::NoFrame</enum> </property> <property name="frameShadow" > <enum>QFrame::Plain</enum> </property> <property name="lineWidth" > <number>0</number> </property> <property name="acceptRichText" > <bool>false</bool> </property> </widget> </item> <item> <widget class="QTextEdit" name="listingsED" /> </item> </layout> </widget> </item> <item> <layout class="QHBoxLayout" > <property name="spacing" > <number>6</number> </property> <property name="leftMargin" > <number>0</number> </property> <property name="topMargin" > <number>0</number> </property> <property name="rightMargin" > <number>0</number> </property> <property name="bottomMargin" > <number>0</number> </property> <item> <spacer> <property name="orientation" > <enum>Qt::Horizontal</enum> </property> <property name="sizeType" > <enum>QSizePolicy::Expanding</enum> </property> <property name="sizeHint" > <size> <width>101</width> <height>27</height> </size> </property> </spacer> </item> <item> <widget class="QPushButton" name="okPB" > <property name="text" > <string>OK</string> </property> <property name="default" > <bool>true</bool> </property> </widget> </item> <item> <widget class="QPushButton" name="closePB" > <property name="text" > <string>Cancel</string> </property> </widget> </item> </layout> </item> </layout> </item> </layout> </widget> <tabstops> <tabstop>okPB</tabstop> <tabstop>closePB</tabstop> </tabstops> <includes> <include location="local" >qt_helpers.h</include> </includes> <resources/> <connections/> </ui>
<<inline: listings_dialog.png>>