首页| 论坛| 消息

回复: ubuntu系统,arm-qte-4.7.0和qt creator,编译例子程序,出错
#6 回 1楼(gwyanping) 的帖子 [sdyansong 07-26 15:57]
qmlapplicationviewer.h
// checksum 0x898f version 0x70013
/*
This file was generated by the Qt Quick Application wizard of Qt Creator.
QmlApplicationViewer is a convenience class containing mobile device specific
code such as screen orientation handling. Also QML paths and debugging are
handled here.
It is recommended not to modify this file, since newer versions of Qt Creator
may offer an updated version of it.
*/
#ifndef QMLAPPLICATIONVIEWER_H
#define QMLAPPLICATIONVIEWER_H
#include
#include
class MyButtonItem : public QDeclarativeItem
{
Q_OBJECT
Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged)
signals:
void colorChanged();
void mySignals();
public:
MyButtonItem(QDeclarativeItem *parent = 0);
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
QWidget *widget = 0);
public:
const QColor &color() const;
void setColor(const QColor &newColor);
Q_INVOKABLE QColor myColor() const;
// Alternatives for myColor to be called from QML
//public slots
//QColor myColor() const;
private:
QColor m_color;
};
class QmlApplicationViewer : public QDeclarativeView
{
Q_OBJECT
public:
enum ScreenOrientation {
ScreenOrientationLockPortrait,
ScreenOrientationLockLandscape,
ScreenOrientationAuto
};
explicit QmlApplicationViewe ..
#7 回 1楼(gwyanping) 的帖子 [sdyansong 07-26 15:58]
上面的是我找的例子,错误是/home/love/qt-quick/clear/main.cpp:-1: In function 'int main(int, char**)':
/home/love/qt-quick/clear/main.cpp:11: 错误:'Auto' is not a member of 'QmlApplicationViewer'
我是菜鸟啊,不懂,麻烦您给看一下,谢谢啊
#8 [XChinux 07-26 16:43]
楼主的标题太那个啥。。。。。
标题要简要写明问题主旨

<< 1 2 >> (2/2)

回复 发表
主题 版块