On 10/12/2011 12:47 م, Phil Thompson wrote:
I think there might be a pyuic4 regression related to retranslation. What version were you using that seemed to work? Can you send me a .ui file that seems to have the problem? By the way, I didn't face this problem with C++/Qt for same Qt version -- Best Regards Muhammad Bashir Al-Noimi My Blog: http://mbnoimi.net |
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>LoginDialog</class> <widget class="QDialog" name="LoginDialog"> <property name="windowModality"> <enum>Qt::WindowModal</enum> </property> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>337</width> <height>308</height> </rect> </property> <property name="sizePolicy"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>200</width> <height>0</height> </size> </property> <property name="maximumSize"> <size> <width>449</width> <height>16777215</height> </size> </property> <property name="windowTitle"> <string>Login</string> </property> <property name="windowIcon"> <iconset> <normaloff/> </iconset> </property> <layout class="QVBoxLayout" name="verticalLayout_2"> <property name="spacing"> <number>1</number> </property> <property name="margin"> <number>1</number> </property> <item> <widget class="QStackedWidget" name="stackedWidget"> <property name="currentIndex"> <number>0</number> </property> <widget class="QWidget" name="page"> <layout class="QVBoxLayout" name="verticalLayout"> <property name="spacing"> <number>1</number> </property> <property name="margin"> <number>1</number> </property> <item> <widget class="QLabel" name="label_login"> <property name="pixmap"> <pixmap resource="../Common/common.qrc">:/ui/images/login.png</pixmap> </property> <property name="scaledContents"> <bool>true</bool> </property> </widget> </item> <item> <layout class="QGridLayout"> <property name="margin"> <number>5</number> </property> <property name="spacing"> <number>6</number> </property> <item row="0" column="1"> <widget class="QLineEdit" name="uiUserName"/> </item> <item row="1" column="0"> <widget class="QLabel" name="label_4"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="text"> <string>&Password:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> <property name="buddy"> <cstring>uiPassword</cstring> </property> </widget> </item> <item row="1" column="1"> <widget class="QLineEdit" name="uiPassword"> <property name="echoMode"> <enum>QLineEdit::Password</enum> </property> </widget> </item> <item row="0" column="0"> <widget class="QLabel" name="label_3"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="text"> <string>&Username:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> <property name="buddy"> <cstring>uiUserName</cstring> </property> </widget> </item> </layout> </item> <item> <layout class="QHBoxLayout" name="horizontalLayout_4"> <property name="sizeConstraint"> <enum>QLayout::SetDefaultConstraint</enum> </property> <item> <widget class="QToolButton" name="toolButton_arabic"> <property name="sizePolicy"> <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="text"> <string>&ط¹ظâ¬Ø¸â¬Ø·Â±Ø·Â¨Ø¸â¬Ø¸â¬Ø¸Ù¹</string> </property> <property name="icon"> <iconset resource="../Common/common.qrc"> <normaloff>:/ui/images/flagsyria.png</normaloff>:/ui/images/flagsyria.png</iconset> </property> <property name="iconSize"> <size> <width>56</width> <height>56</height> </size> </property> <property name="checkable"> <bool>true</bool> </property> <property name="autoExclusive"> <bool>true</bool> </property> <property name="toolButtonStyle"> <enum>Qt::ToolButtonIconOnly</enum> </property> </widget> </item> <item> <widget class="QToolButton" name="toolButton_english"> <property name="sizePolicy"> <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="text"> <string>&English</string> </property> <property name="icon"> <iconset resource="../Common/common.qrc"> <normaloff>:/ui/images/flagenglish.png</normaloff>:/ui/images/flagenglish.png</iconset> </property> <property name="iconSize"> <size> <width>56</width> <height>56</height> </size> </property> <property name="checkable"> <bool>true</bool> </property> <property name="checked"> <bool>true</bool> </property> <property name="autoExclusive"> <bool>true</bool> </property> <property name="toolButtonStyle"> <enum>Qt::ToolButtonIconOnly</enum> </property> </widget> </item> <item> <widget class="QToolButton" name="toolButton_turkish"> <property name="sizePolicy"> <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="text"> <string>Tأ¼rkأ§e</string> </property> <property name="icon"> <iconset resource="../Common/common.qrc"> <normaloff>:/ui/images/flagturkey.png</normaloff>:/ui/images/flagturkey.png</iconset> </property> <property name="iconSize"> <size> <width>56</width> <height>56</height> </size> </property> <property name="checkable"> <bool>true</bool> </property> <property name="autoExclusive"> <bool>true</bool> </property> <property name="toolButtonStyle"> <enum>Qt::ToolButtonIconOnly</enum> </property> </widget> </item> </layout> </item> <item> <layout class="QHBoxLayout"> <property name="spacing"> <number>6</number> </property> <property name="leftMargin"> <number>0</number> </property> <property name="topMargin"> <number>5</number> </property> <property name="rightMargin"> <number>0</number> </property> <property name="bottomMargin"> <number>0</number> </property> <item> <widget class="QPushButton" name="pushAccept"> <property name="text"> <string>Login</string> </property> <property name="icon"> <iconset resource="../Common/common.qrc"> <normaloff>:/ui/images/ok.png</normaloff>:/ui/images/ok.png</iconset> </property> <property name="default"> <bool>true</bool> </property> </widget> </item> <item> <widget class="QPushButton" name="pushCancel"> <property name="text"> <string>Close</string> </property> <property name="icon"> <iconset resource="../Common/common.qrc"> <normaloff>:/ui/images/cancel.png</normaloff>:/ui/images/cancel.png</iconset> </property> </widget> </item> <item> <spacer> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>40</width> <height>20</height> </size> </property> </spacer> </item> <item> <widget class="QPushButton" name="pushChange"> <property name="text"> <string>Options</string> </property> <property name="icon"> <iconset resource="../Common/common.qrc"> <normaloff>:/ui/images/configure.png</normaloff>:/ui/images/configure.png</iconset> </property> </widget> </item> </layout> </item> </layout> </widget> <widget class="QWidget" name="page_2"> <layout class="QVBoxLayout" name="verticalLayout_3"> <item> <layout class="QGridLayout" name="gridLayout"> <item row="0" column="0"> <widget class="QLabel" name="label"> <property name="text"> <string>&Server:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> <property name="buddy"> <cstring>pushChange</cstring> </property> </widget> </item> <item row="0" column="1"> <layout class="QHBoxLayout" name="horizontalLayout_3"> <item> <widget class="QLineEdit" name="uiServer"> <property name="enabled"> <bool>false</bool> </property> <property name="focusPolicy"> <enum>Qt::NoFocus</enum> </property> <property name="readOnly"> <bool>true</bool> </property> </widget> </item> </layout> </item> <item row="1" column="0"> <widget class="QLabel" name="label_2"> <property name="text"> <string>&Database:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> <property name="buddy"> <cstring>uiDatabase</cstring> </property> </widget> </item> <item row="1" column="1"> <layout class="QHBoxLayout" name="horizontalLayout_2"> <item> <widget class="QComboBox" name="uiDatabase"/> </item> <item> <widget class="QLineEdit" name="uiTextDatabase"/> </item> <item> <widget class="QPushButton" name="pushCreateDatabase"> <property name="text"> <string>Create &Database</string> </property> <property name="icon"> <iconset resource="../Common/common.qrc"> <normaloff>:/ui/images/new.png</normaloff>:/ui/images/new.png</iconset> </property> </widget> </item> <item> <widget class="QPushButton" name="pushRestoreDatabase"> <property name="text"> <string>&Restore Database</string> </property> <property name="icon"> <iconset resource="../Common/common.qrc"> <normaloff>:/ui/images/redo.png</normaloff>:/ui/images/redo.png</iconset> </property> </widget> </item> </layout> </item> </layout> </item> <item> <layout class="QHBoxLayout" name="horizontalLayout"> <item> <spacer name="spacer"> <property name="orientation"> <enum>Qt::Vertical</enum> </property> <property name="sizeType"> <enum>QSizePolicy::Minimum</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>17</width> <height>17</height> </size> </property> </spacer> </item> <item> <widget class="QLabel" name="uiNoConnection"> <property name="text"> <string><b>Could not connect to server !</b></string> </property> <property name="alignment"> <set>Qt::AlignCenter</set> </property> </widget> </item> <item> <spacer> <property name="orientation"> <enum>Qt::Vertical</enum> </property> <property name="sizeType"> <enum>QSizePolicy::Minimum</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>17</width> <height>17</height> </size> </property> </spacer> </item> </layout> </item> </layout> </widget> </widget> </item> </layout> </widget> <tabstops> <tabstop>uiUserName</tabstop> <tabstop>uiPassword</tabstop> <tabstop>toolButton_english</tabstop> <tabstop>pushAccept</tabstop> <tabstop>uiTextDatabase</tabstop> <tabstop>pushCreateDatabase</tabstop> <tabstop>pushRestoreDatabase</tabstop> <tabstop>uiDatabase</tabstop> <tabstop>toolButton_arabic</tabstop> <tabstop>pushCancel</tabstop> <tabstop>toolButton_turkish</tabstop> <tabstop>pushChange</tabstop> </tabstops> <resources> <include location="../Common/common.qrc"/> <include location="../Common/common.qrc"/> <include location="../Common/common.qrc"/> <include location="../Common/common.qrc"/> <include location="../Common/common.qrc"/> <include location="../Common/common.qrc"/> <include location="../Common/common.qrc"/> </resources> <connections/> </ui>
_______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt