晕了,这个怎么弄额

我装ISAPI_Rewrite组件

装在 D:\伪静态组建

然后我把其中的httpd.ini和ISAPI_Rewrite.dll 复制到我的一个网站目录ISAPI_Rewrite下

并把httpd.ini的只读去掉了

并写了

[ISAPI_Rewrite]

# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

# Block external access to the httpd.ini and httpd.parse.errors files
RewriteRule /httpd(?:\.ini|\.parse\.errors).* / [F,I,O]
# Block external access to the Helper ISAPI Extension
RewriteRule .*\.isrwhlp / [F,I,O]

RewriteRule /news_([0-9,a-z]*).html /news.asp?id=$1
RewriteRule /news_display_([0-9,a-z]*).html /news_display.asp?id=$1

调试结果报错说:找不到网页

IIS的那组件已经加载了

我的IIS是本地的 所有默认网站下面放了好多网站源文件

我现在头都晕了 到底是我设置错了 还是那正则写错了啊

望高人指点 谢谢
在Qt中,`QGraphicsView`是一个用于显示`QGraphicsScene`内容的视图,它通常用于图形用户界面的创建,如游戏、CAD应用等。如果你想在`QGraphicsView`上绘制渐变曲线,你需要借助`QPainter`和`QPen`来设置画笔,并利用`drawPath()`函数。 首先,你需要在一个`QGraphicsItem`子类中,比如自定义的`GradientPathItem`,实现绘图逻辑: ```cpp class GradientPathItem : public QGraphicsItem { public: GradientPathItem(QPointF start, QPointF end, QPainterPath path) : start(start), end(end), path(path) {} void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr) override { painter->save(); // 设置渐变颜色 QLinearGradient gradient(start.x(), start.y(), end.x(), end.y()); gradient.setColorAt(0.0, QColor::fromRgbF(0, 0, 0)); // 黑色 gradient.setColorAt(1.0, QColor::fromRgbF(1, 1, 1)); // 白色或其他想要的颜色 // 创建渐变画刷 QPen pen(Qt::NoPen); pen.setBrush(gradient); // 绘制路径并应用渐变效果 painter->setPen(pen); painter->drawPath(path.simplified()); painter->restore(); } private: QPointF start; QPointF end; QPainterPath path; }; ``` 然后,在`QGraphicsScene`中添加这个自定义的`GradientPathItem`: ```cpp QGraphicsScene* scene = new QGraphicsScene(this); QGraphicsPathItem* pathItem = new GradientPathItem(startPoint, endPoint, myCustomPath); // 填充起点、终点和自定义路径 scene.addItem(pathItem); QGraphicsView* view = new QGraphicsView(scene); view->show(); ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值