Seite 1 von 1

[QT 4.2.0] Bug im Designer?

Verfasst: 20. Oktober 2006 10:23
von ClassicSubzero
Hallo!
Ich habe was seltsames erlebt und zwar:

Mit dem Designer die Oberfläche meines Programms zusammengebastelt,
unter anderem ist mein QTableWidget "Programmliste" dabei.
In die Table Programmliste füge ich dynamisch Kolumnen und deren Inhalt ein. Das Progy übersetze ich via ComboBox mit Sprachen.
Da ich Übersetzungen implementiert habe, rufe ich die Funktion retranslateUi(this);

Eigentlich müssen ja in der retranslateUi-Funktion nur Strings sein, oder?
Nun die drei Überltäterzeilen, die plötzlich in der Funktion auftauchen:
Programmliste->clear();
Programmliste->setColumnCount(0);
Programmliste->setRowCount(0);

Code: Alles auswählen


    void retranslateUi(QDialog *Weeke_InstallerClass)
    {
    Weeke_InstallerClass->setWindowTitle(QApplication::translate("Weeke_InstallerClass", "Weeke_Installer", 0, QApplication::UnicodeUTF8));
    groupBox->setTitle(QApplication::translate("Weeke_InstallerClass", "", 0, QApplication::UnicodeUTF8));
    label->setText(QApplication::translate("Weeke_InstallerClass", "Note: If you are no administrator, you can certainly\n"
"use this installation program but you will have\n"
"problems whilst installing programs.\n"
"Please register once more as administrator and try again!", 0, QApplication::UnicodeUTF8));
    INSTALLBUTTON->setText(QApplication::translate("Weeke_InstallerClass", "Continue", 0, QApplication::UnicodeUTF8));
    groupBoxInstall->setTitle(QApplication::translate("Weeke_InstallerClass", "", 0, QApplication::UnicodeUTF8));
    label_2->setText(QApplication::translate("Weeke_InstallerClass", "Content", 0, QApplication::UnicodeUTF8));
 Programmliste->clear();
Programmliste->setColumnCount(0);
Programmliste->setRowCount(0);
    groupBox_2->setTitle(QApplication::translate("Weeke_InstallerClass", "", 0, QApplication::UnicodeUTF8));
    pushButtonInstall->setToolTip(QApplication::translate("Weeke_InstallerClass", "<html><head><meta name=\"qrichtext\" content=\"1\" /></head><body style=\" white-space: pre-wrap; font-family:MS Shell Dlg 2; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;\"><p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Installs the software checked</p></body></html>", 0, QApplication::UnicodeUTF8));
    pushButtonInstall->setText(QApplication::translate("Weeke_InstallerClass", "     Install", 0, QApplication::UnicodeUTF8));
    pushButtonReadMe->setText(QApplication::translate("Weeke_InstallerClass", "Read Me", 0, QApplication::UnicodeUTF8));
    groupBoxButtons->setTitle(QApplication::translate("Weeke_InstallerClass", "", 0, QApplication::UnicodeUTF8));
    pushButtonTermsAndConditions->setText(QApplication::translate("Weeke_InstallerClass", "General Terms and Conditions", 0, QApplication::UnicodeUTF8));
    pushButtonHotline->setText(QApplication::translate("Weeke_InstallerClass", "Hotline", 0, QApplication::UnicodeUTF8));
    pushUrlButton->setText(QApplication::translate("Weeke_InstallerClass", "Weeke Homepage", 0, QApplication::UnicodeUTF8));
    pushButtonQuit->setText(QApplication::translate("Weeke_InstallerClass", "Quit", 0, QApplication::UnicodeUTF8));
    groupBoxLanguage->setTitle(QApplication::translate("Weeke_InstallerClass", "", 0, QApplication::UnicodeUTF8));
    labelLanguage->setAccessibleName(QApplication::translate("Weeke_InstallerClass", "", 0, QApplication::UnicodeUTF8));
    labelLanguage->setText(QApplication::translate("Weeke_InstallerClass", "Language", 0, QApplication::UnicodeUTF8));
    groupBoxHiddenElements->setTitle(QApplication::translate("Weeke_InstallerClass", "", 0, QApplication::UnicodeUTF8));
    Q_UNUSED(Weeke_InstallerClass);
    } // retranslateUi

};

Warum sind die jetzt da drin !?!

Verfasst: 23. Oktober 2006 07:51
von ClassicSubzero
Die drei Aufrufe werden automatisch generiert.
Aber was haben die in der retranslateUi verloren?