[Qt-interest] show a widget without a main window

Malyushytsky, Alex alex at wai.com
Wed Mar 4 23:06:44 CET 2009


Most of Qt examples are not using main window. Example look like this:

#include <QtGui>
#include "myWidget.h"

//! [main function]
int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    myWidget *w = new myWidget;
    w->show();

    return app.exec();
}

Regards
     Alex Malyushyutsky
________________________________
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of ri at eeda.denso.co.jp
Sent: Tuesday, March 03, 2009 8:56 PM
To: qt-interest at trolltech.com
Subject: [Qt-interest] show a widget without a main window

Hi

I would like to know that if it's possible to show a widget without a main window.

For example, I want to show a QTableWidget, but only a QTableWidget,
not a QTableWidget inside a QMainWindow.

Is it possible? if yes, any sample code?

Thanks in advance!

Shiniji,Mizuki




---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.

"This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you."

"Please consider our environment before printing this email."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090304/3d950169/attachment.html 


More information about the Qt-interest-old mailing list