more input items
This commit is contained in:
parent
79c53bb1c7
commit
395aeba8ec
@ -38,14 +38,23 @@ public:
|
|||||||
setSpacing( 10 );
|
setSpacing( 10 );
|
||||||
|
|
||||||
auto* textInput1 = new QskTextInput( this );
|
auto* textInput1 = new QskTextInput( this );
|
||||||
textInput1->setText( "I am a line edit. Press and edit Me." );
|
textInput1->setText( "Press and edit Me." );
|
||||||
textInput1->setSelectByMouse( true );
|
|
||||||
textInput1->setSizePolicy( Qt::Horizontal, QskSizePolicy::Preferred );
|
textInput1->setSizePolicy( Qt::Horizontal, QskSizePolicy::Preferred );
|
||||||
|
|
||||||
auto* textInput2 = new QskTextInput( this );
|
auto* textInput2 = new QskTextInput( this );
|
||||||
textInput2->setText( "Another text" );
|
textInput2->setText( "Press and edit Me." );
|
||||||
textInput2->setSelectByMouse( true );
|
|
||||||
textInput2->setSizePolicy( Qt::Horizontal, QskSizePolicy::Preferred );
|
textInput2->setSizePolicy( Qt::Horizontal, QskSizePolicy::Preferred );
|
||||||
|
|
||||||
|
auto* textInput3 = new QskTextInput( this );
|
||||||
|
textInput3->setReadOnly( true );
|
||||||
|
textInput3->setText( "Read Only information." );
|
||||||
|
textInput3->setSizePolicy( Qt::Horizontal, QskSizePolicy::Preferred );
|
||||||
|
|
||||||
|
auto* textInput4 = new QskTextInput( this );
|
||||||
|
textInput4->setEchoMode( QskTextInput::PasswordEchoOnEdit );
|
||||||
|
textInput4->setMaxLength( 8 );
|
||||||
|
textInput4->setText( "12345678" );
|
||||||
|
textInput4->setSizePolicy( Qt::Horizontal, QskSizePolicy::Preferred );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user