Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
How to show a dialog modally? is a QT FAQ one has to know the answer of for pop-up windows.
The answer is to call the 'exec' method of the dialog, as in the method below:
void DialogMain::onClickShow() |
For a full working example, you can:
Operating system: Ubuntu 10.04 LTS Lucid Lynx
IDE: Qt Creator 2.0.0
Project type: Qt4 GUI Application
Libraries used:
#include <QtGui/QApplication> |
#ifndef DIALOGPOPUP_H |
#include "dialogpopup.h" |
#ifndef DIALOGMAIN_H |
#include <boost/shared_ptr.hpp> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.