日志
-
2018-02-03 23:04
-
Starting /home/jump/qt5/build-qt1-Desktop_Qt_5_9_3_GCC_64bit-Debug/qt1...
阅读全文»分类:默认分类|回复:0|浏览:737
** (qt1:2247): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
QApplication: invalid style override passed, ignoring it.
解决办法:sudo apt-get install at-spi2-core
-
2017-10-25 22:48
-
参考:http://blog.sina.com.cn/s/blog_a6fb6cc90101g8ug.html
阅读全文»分类:QT|回复:1|浏览:656
import QtQuick 2.6
import QtQuick.Window 2.2
import QtQuick 2.7
Window {
width: 600;
height: 600;
color: "green";
visible: true;
Column{
spacing: 20;
anchors.centerIn: parent;
Text {
id: text1;
//单行语句的分号是可写不用写的。但是一行写多条语句,语句则必须要用分号分隔!
text: qsTr("Text1 Text1 Text1");
font.pointSize: 20; //字体大小
}
Text {
id: text2;
text: qsTr("Text2 Text2 Text2")
color: ..