BCDA-APS / gemviz

Data visualization for tiled
https://bcda-aps.github.io/gemviz/
Other
4 stars 0 forks source link

Add tiled server QcomboBox #147

Closed rodolakis closed 1 year ago

rodolakis commented 1 year ago
rodolakis commented 1 year ago
image
rodolakis commented 1 year ago

When a tiled server is selected via the Open menu, the QcomboBox content is updated so that the url selected in the dialog box becomes the first item (index 0) of the QcomboBox. That way the URI is displayed no matter how it has been opened (via QComboBox or Open dialog). The content of the app (BRC_MVC and catalog list) is now cleared when a different server is selected. Before when a bad server was selected, the status bar indicated as much, but the content of the app continued to display the previous server.

rodolakis commented 1 year ago

The one (minor) thing I could not figure out is how to change the size of the 2 Qcomboboxes? It would be nice to have them more or less the same size.

prjemian commented 1 year ago

The one (minor) thing I could not figure out is how to change the size of the 2 Qcomboboxes? It would be nice to have them more or less the same size.

The horizontalLayout's layoutStretch should be 0 except for the three content widgets. Try this for the layoutStretch: 0,0,1,0,0,1,0,1,0. The positions of the 1 values is based on the geometrical order, not the order in the Object list.

rodolakis commented 1 year ago

The horizontalLayout's layoutStretch should be 0 except for the three content widgets. Try this for the layoutStretch: 0,0,1,0,0,1,0,1,0. The positions of the 1 values is based on the geometrical order, not the order in the Object list.

image

I like better layoutStretch: 0,0,1,0,0,1,0,0,0:

image