4 @SuppressWarnings public class QProgressBar : QWidget{
9 public QProgressBar(long handle){
14 nativehandle = QtXnl.createQObject(QType.qtProgressBar,
this, 0);
15 if (nativehandle == 0){
21 public bool create(@NotNilptr QWidget parent)
override {
22 nativehandle = QtXnl.createQObject(QType.qtProgressBar,
this, parent.nativehandle);
23 if (nativehandle == 0){
29 return QtXnl.widget_get_int_value(nativehandle, Constant.QPMININUM);
32 return QtXnl.widget_get_int_value(nativehandle, Constant.QPMAXINUM);
35 return QtXnl.widget_get_int_value(nativehandle, Constant.QPVALUE);
38 return (
String)QtXnl.core_getString(nativehandle, Constant.QPTEXT);
41 QtXnl.widget_set_bool_value(nativehandle, Constant.QPVISIBLE, visible);
44 return QtXnl.widget_get_bool_value(nativehandle, Constant.QPVISIBLE);
47 return QtXnl.widget_get_int_value(nativehandle, Constant.QPALIGN);
50 QtXnl.widget_set_vint_value(nativehandle, Constant.QPALIGN, alignment);
53 return QtXnl.widget_get_int_value(nativehandle, Constant.QPORIENTATION);
56 QtXnl.widget_set_bool_value(nativehandle, Constant.QPINVERTAPPEAR, invert);
59 return QtXnl.widget_get_bool_value(nativehandle, Constant.QPINVERTAPPEAR);
62 QtXnl.widget_set_vint_value(nativehandle, Constant.QPTEXTDIR, textDirection);
65 return QtXnl.widget_get_int_value(nativehandle, Constant.QPTEXTDIR);
68 QtXnl.widget_slot_string(nativehandle, Constant.QPFORMAT, format);
71 QtXnl.widget_slot(nativehandle, Constant.QPFORMAT);
74 return (
String)QtXnl.core_getString(nativehandle, Constant.QPFORMAT);
77 QtXnl.widget_slot(nativehandle, Constant.QPRESET);
79 public void setRange(
int minimum,
int maximum){
80 QtXnl.widget_set_v2int_value(nativehandle, Constant.QPRANGE, minimum, maximum);
83 QtXnl.widget_set_vint_value(nativehandle, Constant.QPMININUM, minimum);
86 QtXnl.widget_set_vint_value(nativehandle, Constant.QPMAXINUM, maximum);
89 QtXnl.widget_set_vint_value(nativehandle, Constant.QPVALUE, value);
92 QtXnl.widget_set_vint_value(nativehandle, Constant.QPORIENTATION, Orientation);
void setMinimum(int minimum)
bool invertedAppearance()
void setRange(int minimum, int maximum)
void setOrientation(int Orientation)
void setAlignment(int alignment)
bool create(@NotNilptr QWidget parent) override
void setTextVisible(bool visible)
void setInvertedAppearance(bool invert)
void setMaximum(int maximum)
void setTextDirection(int textDirection)
void setFormat(String format)