【发布时间】:2016-02-08 17:35:22
【问题描述】:
在我的 Ubuntu 14.04 上成功安装 PyQt5.5.1 和 Qt5.5.1 后,我使用 QtQuick 运行了我的简单 pyqt 文件并遇到了这个错误:
libQt5Network.so.5:未定义符号:_Z24qt_subtract_from_timeoutii
有人遇到过这种情况吗?
谢谢。
Python.py:
# Main Function
if __name__ == '__main__':
# Create main app
myApp = QApplication(sys.argv)
# Create a label and set its properties
appLabel = QQuickView()
appLabel.setSource(QUrl('basic.qml'))
# Show the Label
appLabel.show()
# Execute the Application and Exit
myApp.exec_()
sys.exit()
基本.qml:
Grid {
id: colorPicker
rows: 2; columns: 3; spacing: 3
Rectangle { color: "white";}
Rectangle { color: "green";}
Rectangle { color: "blue"; }
Rectangle { color: "yellow";}
Rectangle { color: "steelblue";}
Rectangle { color: "black";}
}
【问题讨论】: