开发者

Qt Quick how to create a button that will loock native to each OS app is used in?

What I need is simple: qml way to create a button 开发者_如何学Pythonthat would loock native on each platform app is compiled to? (mainly I wonder about linux, windows and Mac OS X)


There's nothing built-in.

But there is a project called Qt Quick Components, mainly for mobile platforms. There is also some development for desktop platforms, see http://labs.qt.nokia.com/2011/03/10/qml-components-for-desktop/


There may not have been anything built-in when you asked this question, but QtQuick.Controls 1.0 was officially released as a part of Qt 5.1. It has a Button component that should tries to match the native look and feel.

The QtQuick.Controls module is basically the Qt Desktop Components project that blakharaz linked to in his answer. It just has a new name, is more developed and is better integrated now.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜