OESF Portables Forum

Everything Else => Zaurus - Everything Development => Distros, Development, and Model Specific Forums => Archived Forums => Qt/Qtopia => Topic started by: simonqu on August 12, 2004, 07:16:06 pm

Title: QToolBar isn't dockable on Zaurus
Post by: simonqu on August 12, 2004, 07:16:06 pm
I'm developing an application for sharp zaurus 5600 and encontered a QToolBar related problem. The program is working fine in my PC. When tranfered to PDA, the QToolBar isn't dockable. Any body here can help me?
Thanks
-------------------------------
Here enclosed the program
-------------------------------
#include <qapplication.h>
#include <qtoolbar.h>
#include <qwhatsthis.h>

class SmMainWin_QT:pulic QMainWindow
{
  public:
          SmMainWin_QT();
}
SmMainWin_QT::SmMainWin_QT():QMainWindow(0, "test")
{
  resize(235, 315);
  QToolBar * tool_bar = newQToolBar(this);
  addToolBar(tool_bar, Minimized);
  (void)QWhatsThis::WhatsThisButton(tool_bar);
}

int main(int argc, **argv)
{
  QApplication app(argc, argv);
  SmMainWin_QT* mainWin = new SmMainWin_QT();
  app.setMainWidget(mainWin);
  mainWin->show();
  return app.exec();
}