[QGIS-Developer] Increase the size of validateCoordinates box

nihcas nihcas.c76 at gmail.com
Wed Sep 13 04:40:27 PDT 2017


Hi,

I want to increase the size of coordinate display box at status bar. However
setMaximumWidth set to 400 but its not increasing.

mLineEdit = new QLineEdit( this );
mLineEdit->setMinimumWidth( 10 );
*mLineEdit->setMaximumWidth( 300 );*
//mLineEdit->setMaximumHeight( 20 );
mLineEdit->setContentsMargins( 0, 0, 0, 0 );
mLineEdit->setAlignment( Qt::AlignCenter );
connect( mLineEdit, &QLineEdit::returnPressed, this,
&QgsStatusBarCoordinatesWidget::validateCoordinates );

Any one help me out?

Regards



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html


More information about the QGIS-Developer mailing list