natwarrior / lcdhost

Automatically exported from code.google.com/p/lcdhost
0 stars 0 forks source link

More control over button positions #60

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Whilst working on conditional formatting, I realised that I need more control 
over buttons - their sizes and positions - in order to make a "button rich" ui 
like this useable. Without it, the buttons alone take up half the height of the 
window meaning a lot of scrolling around is needed just to be able to reach 
everything.

http://codeleap.co.uk/lcdhost/desired_item_layout.png

Original issue reported on code.google.com by a...@bridgesuk.com on 14 May 2011 at 5:12

GoogleCodeExporter commented 9 years ago
Alternatively, perhaps a lh_qt_button_array object that creates a row of 
buttons. It would need to connect to only one changed (clicked) event that 
includes an index value.

setup_row_of_buttons_ = new lh_qt_button_array(this,"^Button Row 
1",QStringList()<<"ButtonA"<<"ButtonB"<<"ButtonC"<<"ButtonD")

This would then create the appropriate # of equally sized buttons witht he 
given labels.

The only catch is that it would be important to be able to set the disabled 
(readonly) states individually.

Is this more possible?

Original comment by a...@bridgesuk.com on 15 May 2011 at 9:06

GoogleCodeExporter commented 9 years ago
lh_type_string_htmlhelp

Original comment by jo...@linkdata.se on 16 Jul 2011 at 12:12