
Originally Posted by
wysota
The navigation bar is stable, the problem with it is that you can't use its Designer plugin correctly, because of a major bug in Qt.
Unfortunately, when you claimed the widget was unstable it wasn't clear what this meant. When I started testing it I used a test routine like this
#include <QtGui>
#include <qwwnavigationbar.h>
int main(int argc, char ** argv)
{
QwwNavigationBar* nav = new QwwNavigationBar(win);
nav
->addWidget
(new QFrame(),
"First Widget");
nav
->addWidget
(new QFrame(),
"Second Widget");
nav
->addWidget
(new QFrame(),
"Third Widget");
win->setCentralWidget(nav);
win->show();
return app.exec();
}
#include <QtGui>
#include <qwwnavigationbar.h>
int main(int argc, char ** argv)
{
QApplication app(argc, argv);
QMainWindow* win = new QMainWindow();
QwwNavigationBar* nav = new QwwNavigationBar(win);
nav->addWidget(new QFrame(), "First Widget");
nav->addWidget(new QFrame(), "Second Widget");
nav->addWidget(new QFrame(), "Third Widget");
win->setCentralWidget(nav);
win->show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
which creates the screen window attached. The text for the second and third widgets was missing. This is when I started hacking
. I believe I have a working solution, but as I can't be sure that this matches your original design, I'd rather PM the changes to you.
Pete
Bookmarks