![]() |
2010-04-04
, 23:36
|
|
Posts: 1,366 |
Thanked: 1,185 times |
Joined on Jan 2006
|
#2
|
The Following User Says Thank You to mikec For This Useful Post: | ||
![]() |
2010-04-05
, 18:19
|
Posts: 270 |
Thanked: 239 times |
Joined on Dec 2009
@ Czech Republic
|
#3
|
![]() |
2010-04-05
, 20:45
|
|
Posts: 1,366 |
Thanked: 1,185 times |
Joined on Jan 2006
|
#4
|
from PyQt4 import QtCore, QtGui class Ui_Dialog(object): def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(400, 300) self.pushButton = QtGui.QPushButton(Dialog) self.pushButton.setGeometry(QtCore.QRect(0, 10, 84, 23)) self.pushButton.setObjectName("pushButton") self.label = QtGui.QLabel(Dialog) self.label.setGeometry(QtCore.QRect(10, 40, 55, 15)) self.label.setObjectName("label") self.retranslateUi(Dialog) QtCore.QMetaObject.connectSlotsByName(Dialog) def retranslateUi(self, Dialog): Dialog.setWindowTitle(QtGui.QApplication.translate("Dialog", "Dialog", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton.setText(QtGui.QApplication.translate("Dialog", "PushButton", None, QtGui.QApplication.UnicodeUTF8)) self.label.setText(QtGui.QApplication.translate("Dialog", "TextLabel", None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__": import sys app = QtGui.QApplication(sys.argv) Dialog = QtGui.QDialog() ui = Ui_Dialog() ui.setupUi(Dialog) Dialog.show() sys.exit(app.exec_())
The Following 3 Users Say Thank You to mikec For This Useful Post: | ||
![]() |
2010-04-05
, 20:54
|
Posts: 270 |
Thanked: 239 times |
Joined on Dec 2009
@ Czech Republic
|
#5
|
![]() |
2010-04-06
, 13:53
|
Posts: 432 |
Thanked: 645 times |
Joined on Mar 2009
|
#6
|
Hi I have some questions.
2)Is there any compensation for QSound?Maybe in future?
![]() |
2010-04-06
, 15:05
|
|
Posts: 1,366 |
Thanked: 1,185 times |
Joined on Jan 2006
|
#7
|
/******************************************************************************** ** Form generated from reading UI file 'dialog.ui' ** ** Created ** by: Qt User Interface Compiler version 4.6.2 ** ** WARNING! All changes made in this file will be lost when recompiling UI file! ******************************************************************************/ #ifndef DIALOG_H #define DIALOG_H #include <QtCore/QVariant> #include <QtGui/QAction> #include <QtGui/QApplication> #include <QtGui/QButtonGroup> #include <QtGui/QDialog> #include <QtGui/QHeaderView> #include <QtGui/QLabel> #include <QtGui/QPushButton> QT_BEGIN_NAMESPACE class Ui_Dialog { public: QPushButton *pushButton; QLabel *label; void setupUi(QDialog *Dialog) { if (Dialog->objectName().isEmpty()) Dialog->setObjectName(QString::fromUtf8("Dialog")); Dialog->resize(400, 300); pushButton = new QPushButton(Dialog); pushButton->setObjectName(QString::fromUtf8("pushButton")); pushButton->setGeometry(QRect(0, 10, 84, 23)); label = new QLabel(Dialog); label->setObjectName(QString::fromUtf8("label")); label->setGeometry(QRect(10, 40, 55, 15)); retranslateUi(Dialog); QMetaObject::connectSlotsByName(Dialog); } // setupUi void retranslateUi(QDialog *Dialog) { Dialog->setWindowTitle(QApplication::translate("Dialog", "Dialog", 0, QApplication::UnicodeUTF8)); pushButton->setText(QApplication::translate("Dialog", "PushButton", 0, QApplication::UnicodeUTF8)); label->setText(QApplication::translate("Dialog", "TextLabel", 0, QApplication::UnicodeUTF8)); } // retranslateUi }; namespace Ui { class Dialog: public Ui_Dialog {}; } // namespace Ui QT_END_NAMESPACE #endif // DIALOG_H
The Following 2 Users Say Thank You to mikec For This Useful Post: | ||
1) Is there any way how remove hildon style from QPushButton?
2)Is there any compensation for QSound?Maybe in future?
3)Is possible add widgets to QDialog?
Thx for your replies.