我有数据库,其中i在这个格式插入时间戳(6):
18-AUG-14 02.49.27.000000000 PM。
我想把它提取成这个:2014-08
它被称为 ISO 8601
基于Qt 5.3.1(MSVC 2010,32位)的Qt Creator3.1.2。Project已导入QmlProject 2.0。这是我的程序中出现此错误的地方。该程序来自教程,对他有用。.so我不确定那里是什么问题。
import QtQuick 2.0
Rectangle {
id: rootTangle
width: 360
height: 360
color: "red"
hoverEnabled: true;
Rectangle {
id: blueRec
color: "blue"
//opacity: .50
width: rootTangle.width/2
height: rootTangle.width/6
anchors.centerIn: rootTangle
border.color: "black"
border.width: 7
rotation: 180
radius: 20
gradient: Gradient {
GradientStop { position: 0.0; color: "#b0c5de" }
GradientStop { position: 1.0; color: "blue" }
}
}
Text {
id: nazdarTxt
anchors.centerIn: blueRec
text: "Nazdar"
clip: false
visible: true
font.family: "Times New Roman"
font.bold: true
//font.pixelSize: …Run Code Online (Sandbox Code Playgroud)