c++ VS2019 qt qpainter中的fillRect无法画矩形

代码如下:
QPainter* paint = new QPainter();
paint->fillRect(0,0,32,w,QColor(255,255,0));
谁知道哪儿错了

QPainter构造怎么没参数呢,应该指定绘图的窗口啊

代码如下:
QPainter* paint = new QPainter();
paint->fillRect(0,0,32,w,QColor(255,255,0));
谁知道哪儿错了
备注:w=640