当我尝试导入redux void MainWindow::on_pushButton_11_clicked() // rectangle shape creator
{
QBrush redBrush(Qt::red);
QBrush blueBrush(Qt::blue);
QPen blackpen(Qt::black);
blackpen.setWidth(3);
rectangle = scene->addRect(-100,-100,50,50,blackpen,blueBrush);
rectangle->setFlag(QGraphicsItem::ItemIsMovable);
}
组件时遇到奇怪的导入错误,
我不知道是什么原因造成的,我已经为涉及的软件包安装了所有最新的compose
:
错误:
@types
JSX element type 'PostTable' does not have any construct or call signatures.
import React from 'react';
import { Container, Row, Col } from 'react-bootstrap';
import CreatePost from '../postings/CreatePost';
import PostTable from '../postings/PostTable';
export default (props: { [key: string]: any }) => {
return (
<Container>
<Row>
<Col>
<CreatePost></CreatePost>
</Col>
<Col>
<PostTable></PostTable> //Error occurs here
</Col>
</Row>
</Container>
);
};