首页| 论坛| 消息

标题:为什么没有执行paintevent这个函数?
作者:做个小计划
日期:2011-06-18 18:04
内容:

#include "mainwindow.h"
#define cout qDebug()


test :: test(QMainWindow *parent) : QMainWindow(parent)
{


setGeometry(320,320,320,320);


mywidget = new QWidget;
mywidget->setGeometry(320,320,320,320);
setCentralWidget(mywidget);


newaction = new QAction(tr("New Game"),this);
connect(newaction,SIGNAL(triggered()),this,SLOT(newdraw()));


aboutaction = new QAction(tr("About"),this);
connect(aboutaction,SIGNAL(triggered()),this,SLOT(about()));


filemenu = menuBar()->addMenu(tr("File"));
filemenu->addSeparator();
filemenu -> addAction(newaction);


aboutmenu = menuBar()->addMenu(tr("About"));
aboutmenu->addSeparator();
aboutmenu->addAction(aboutaction);
Test = new QPushButton(tr("aa"),this);
connect(Test,SIGNAL(clicked()),this,SLOT(newdraw()));
Test->setGeometry(32,32,32,32);


isdraw = false;
memset(arrmap,0,sizeof(arrmap));
photolist.clear();
for(int i = 1 ; i


#1 [做个小计划 06-18 18:06]
为什么 paintevent这个函数没有被调用?
#2 [做个小计划 06-18 18:10]
发现一个论坛bug。。 我的代码 斜体之前是arrmap... 导致了斜体字。。
#3 [做个小计划 06-18 18:11]
。。。。。"arrmap"“”这里导致斜体
#4 [做个小计划 06-18 18:13]
好吧。。只能 arrmap【i】了。。
#5 [做个小计划 06-18 18:13]
test

<< 1 2 3 >> (1/3)

回复 发表
主题 版块