Unsolved how to open several ui from a main menu
-
@Paulo-G It would help if you would tell us what error you get...
And can you show the header file so we can see where you added that line? -
This post is deleted! -
mainwindow.h:30: error: 'siguiente' does not name a type
siguiente *vRoll=NULL; -
@Paulo-G said in how to open several ui from a main menu:
mainwindow.h:30: error: 'siguiente' does not name a type
include the header file where siguiente is declared. Or if it is already the case is this siguiente in a namespace?
MaybeUi::siguiente vRoll = NULL;
?
-
This post is deleted! -
En mainwindows.h
public:
Ui:: siguiente *vRoll=NULL;En mainwindows.cpp
if (vRoll=NULL)
vRoll=new siguiente();
vRoll->show();----error
cannnot convert 'siguiente*' to Ui::siguiente*'
class Ui::siguiente has no member name show -
Hi
siguiente seems to be a dialog so not very likely its inside
UI::
You did have
#include "siguiente.h" in top of the mainwindow.h ? -
I had already added headers
#include "siguiente.h"
-
@Paulo-G
If so - it should accept
siguiente *vRoll = NULL;
if it still complains, try
siguiente *vRoll;
( and set it to null in constructor) -
@Paulo-G
I doubt that, in the screenshot you posted, the line after#include "siguiente.h
is clearly
#include "ui_siguiente.h
that let's me to believe, that you placed
#include "siguiente.h
inside siguiente.h or siguiente.cpp