
Originally Posted by
Lykurg
Well if you can obviously set the [ QTCLASS ] then try to move your mouse a little bit more left to hit the # then you also can set the [ CODE ] tags!
Make the dialog a children of your mainwindow, then the translation should work.
Thank you! I have edited my post already.
"a children"? Do you mean:
void app::MainWindow::showAboutDialog()
{
AboutDialog *ad = new AboutDialog(this);
ad->exec();
}
void app::MainWindow::showAboutDialog()
{
AboutDialog *ad = new AboutDialog(this);
ad->exec();
}
To copy to clipboard, switch view to plain text mode
? If so, I tried this but it still doesn't work. On the other hand, I have almost the same code:
// in mainwindow.cpp
void PicWorks::MainWindow::newProWin()
{
ProjectCreateDialog *pcd = new ProjectCreateDialog;
pcd->exec();
}
// in mainwindow.cpp
void PicWorks::MainWindow::newProWin()
{
ProjectCreateDialog *pcd = new ProjectCreateDialog;
pcd->exec();
}
To copy to clipboard, switch view to plain text mode
This code works well!
Bookmarks