首页| 论坛| 消息

标题:QTextBrowser显示帮助系统的问题?
作者:自语的骆驼
日期:2010-12-22 08:51
内容:

用QtextBrowser做一个简单的帮助系统,Qt版本是Qt-embedded-3.3.8b,kubuntu上调试通过完全没有问题,并且交叉编译也没问题,但在ARM上运行到定义QTextBrowser的时候:
                          helpBrowser  =   new QTextBrowser(this,"help browser");   //运行这句的时候,系统没有反应了,好像死机了一样,ps了一下程序还在跑,我的交叉编译环境是Linux2.4.20-18的内核,开发宿主机的内核版本是Linux2.6.31.22,不知道这事怎么回事,请哪位大哥指点一下,谢谢!
以下是源代码:
/*****************************HelpInfoWnd.h**********************************/
#ifndef HELPINFOWND_H
#define HELPINFOWND_H
#include
#include
#include
#include
#include
#include
#include
#include
class HelpInfoWnd : public CommonChildWidget
{
  Q_OBJECT
public:
  HelpInfoWnd(QWidget * parent = 0,const char * name = 0,WFlags fl = 0,char index = 0);
  ~HelpInfoWnd();
protected:
  void openHelpFile(QString path);
  void languageChange(void);
protected slots:
  void goToHtml(void);
  void showFocusAll(bool);
private:
  int helpNum;
 
  QLabel *pageNum;
  WidgetMyLineEdit *helpIndex;
  QLabel *helpInfoTip;
 
  QTextBrowser *helpBrowser;
};
#endif //HELPINFOWND_H

/***************************HelpInfoWnd.cpp***********************************/
#include "HelpInfoWnd.h"
HelpInfoWnd::HelpInfoWnd(QWidget * parent,const char * name,WFlags fl,char index)
                 : CommonChildWidget(parent,name,fl)
{
    if(!name)
        setName("helpinfownd");
   
   ..

回复 发表
主题 版块