PDA

View Full Version : Interaction between QMenuBar and QGLWidget



Cucus
18th April 2011, 17:47
Hi,

I wish to create an option in the menu bar of my Qt application which can load an ASCII file with vertex. This file will be used to paint the object on a qglwidget.

Unfortuneadly I don't know how to do this:

I have my MenuBar on my MainWindow which is a QWidget. All actions are for the menu are implemented. I call the .ui form in the creator function:


MenuPrincipal::MenuPrincipal(QWidget *parent) :
QWidget(parent),
ui(new Ui::MenuPrincipal)
{
ui->setupUi(this);
setCurrentFile("");
textEdit = new QTextEdit;
createActions();
}


Calling the .ui I can see the QGLWidget. But now, how to sent signals from "MenuPrincipal" to glwidget, the class of my QGLWidget?

Thanks!

high_flyer
19th April 2011, 12:48
how to sent signals from "MenuPrincipal" to glwidget,
Do you know how signal and lots are used?