默认外观分别如下(win7,与上述顺序对应):可看出,都是由一个可编辑的文本框及右端小箭头组成QAbstractSpinBox属性简单解释如下:Propertiesaccelerated: bool加速acceptableInput: const bool接受输入alignment: Qt::Ali...
分类:
其他好文 时间:
2015-05-04 15:17:19
阅读次数:
225
Main Window and Related ClassesQAction动作类,用于当做一个菜单项或工具项插入菜单或工具栏QActionGroup动作组,用于管理多个动作,设置它们之间的互斥性等QWidgetAction部件动作,继承自QAction,用于将小部件插入菜单或工具栏QDockWid...
分类:
其他好文 时间:
2015-05-04 15:07:52
阅读次数:
878
Android上 ,Context可以用于很多操作,但是大部分时候是用来加载以及使用资源。这就是为什么所有的widgets在他们的构造函数中接受一个Context参数。在一般的android应用中,你通常有两种Context:分别是Activity和Application。通常的,当我们的类和方法需要使用到context时,我们传递的是Activity这个context。
[j...
分类:
其他好文 时间:
2015-04-29 11:42:26
阅读次数:
112
Yii内置扩展(zii)中具有方便的时间控件CJuiDatePicker可供使用。使用这个部件,你可以在视图里面插入以下代码:
$this->widget('zii.widgets.jui.CJuiDatePicker', array(
'language'=>'zh_cn',
'name'=>'EndDate',
// additional javascr...
分类:
其他好文 时间:
2015-04-28 09:54:58
阅读次数:
141
components可以作为widgets来呈现,它包含了自己独立的view,能够被预加载或者通过异步的方式加载,能够接受参数并返回结果,可继承于其他组件,也可被重用。通过使用components,我们可以使用自定义的语义化标签来代替,这种方式在旧的浏览器下同样可以实现兼容。一个组件中包含了view...
分类:
Web程序 时间:
2015-04-21 20:40:10
阅读次数:
186
AQtGui.QPixmapis one of the widgets used to work with images. It is optimized for showing images on screen. In our code example, we will use theQtGui....
分类:
其他好文 时间:
2015-04-17 22:08:22
阅读次数:
187
AQtGui.QSplitterlets the user control the size of child widgets by dragging the boundary between the children. In our example, we show threeQtGui.QFra...
分类:
其他好文 时间:
2015-04-17 21:51:32
阅读次数:
231
Layout management with layout classes is much more flexible and practical. It is the preferred way to place widgets on a window. TheQtGui.QHBoxLayouta...
分类:
其他好文 时间:
2015-04-17 19:48:00
阅读次数:
135
RecyclerView 是 android-support-v7-21 版本中新增的一个 Widgets, 还有一个 CardView 会在下次介绍使用。
老的版本不支持,你可以跟新下载直接拷贝到libs里面使用
布局里面这样写
android:id="@+id/recyclerView"
android:layout_...
分类:
其他好文 时间:
2015-04-17 14:03:39
阅读次数:
166