@jpn
Sorry I hadn't noticed your question untill now.
#include <QApplication>
#include "mainwindowimpl.h"
//
int main(int argc, char ** argv)
{
MainWindowImpl win;
win.show();
app.connect( &app, SIGNAL( lastWindowClosed() ), &app, SLOT( quit() ) );
return app.exec();
}
#include <QApplication>
#include "mainwindowimpl.h"
//
int main(int argc, char ** argv)
{
QApplication app( argc, argv );
MainWindowImpl win;
win.show();
app.connect( &app, SIGNAL( lastWindowClosed() ), &app, SLOT( quit() ) );
return app.exec();
}
To copy to clipboard, switch view to plain text mode
#include "mainwindowimpl.h"
//
MainWindowImpl
::MainWindowImpl( QWidget * parent, Qt
::WFlags f
) {
setupUi(this);
setWindowFlags(Qt::Tool);
}
#include "mainwindowimpl.h"
//
MainWindowImpl::MainWindowImpl( QWidget * parent, Qt::WFlags f)
: QMainWindow(parent, f)
{
setupUi(this);
setWindowFlags(Qt::Tool);
}
To copy to clipboard, switch view to plain text mode
#ifndef MAINWINDOWIMPL_H
#define MAINWINDOWIMPL_H
//
#include <QMainWindow>
#include "ui_mainwindow.h"
//
class MainWindowImpl
: public QMainWindow,
public Ui
::MainWindow{
Q_OBJECT
public:
MainWindowImpl
( QWidget * parent
= 0, Qt
::WFlags f
= 0 );
private slots:
};
#endif
#ifndef MAINWINDOWIMPL_H
#define MAINWINDOWIMPL_H
//
#include <QMainWindow>
#include "ui_mainwindow.h"
//
class MainWindowImpl : public QMainWindow, public Ui::MainWindow
{
Q_OBJECT
public:
MainWindowImpl( QWidget * parent = 0, Qt::WFlags f = 0 );
private slots:
};
#endif
To copy to clipboard, switch view to plain text mode
@luf
Well no, it's on a main window as you can see.
The example 'windowsflags' uses a widget to set Qt::Tool and is working,
Bookmarks