StupidBeauty
Read times:345Posted at:Thu May 5 01:20:35 2011
- no title specified

Wt3.1.9文档翻译:WHBoxLayout类参考,WHBoxLayout Class Reference

这是一个将部件水平排列的布局管理器

这个便利类创建一个水平的盒状布局,将其中包含的部件从左到右排列。

参见WBoxLayout 文档,以了解那些可用的成员方法和更多的信息。

使用示例:

Wt::WContainerWidget *w = new Wt::WContainerWidget(this);

Wt::WHBoxLayout *layout = new Wt::WHBoxLayout();

 layout->addWidget(new Wt::WText("One"));

 layout->addWidget(new Wt::WText("Two"));

 layout->addWidget(new Wt::WText("Three"));

 layout->addWidget(new Wt::WText("Four"));

 w->setLayout(layout, AlignTop | AlignJustify);

注意:

首先考虑一下,你是否可以用CSS 来实现你的布局!

参见:

WVBoxLayout

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4