You should name the dialog in the ui file different from the first one.
You should name the dialog in the ui file different from the first one.
In your seconddialog class definition, you have declared a member variable of the type Ui:: Dialog. There is no such class. Your code should read:C2027 Use of the undefined type "Ui:: Dialog" QtWidgetsApplication7 C:\Users\lauer\source\repos\QtWidgetsApplication7\ QtWidgetsApplication7\Messdialog.cpp 15
Qt Code:
private: Ui::seconddialog ui;To copy to clipboard, switch view to plain text mode
(Assuming that you named the Ui class "seconddialog" in your .ui file. Whatever you named it, the name in the ui file must match the name you use in your QDialog class definition.)
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Bookmarks