Is it possible to use constants in Qt Designer? -


i want have same margins, sizes etc. same kinds of widgets. possible define constants , use them in qt designer?

(i want similiar eclipse gui design of android applications have global constants)

extra answer comment, layouts , styling:

you can not tune layout qss, because not widget. may wrap content of layout widget.

so if have next scheme:

verticallayout(margin: 5px) -> your_widgets

you should add extra/proxy widget:

verticallayout(margin: 0px) -> wrapper_widget_with_verticallayout(margin: 5px) -> your_widgets

so able use selectors like: #wrapper_widget_with_verticallayout qwidget{ border: 1px solid red; }


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -