Bool Button Slider

LpProjectLpProject Posts: 41
edited December 1969 in Daz SDK Developer Discussion

Hello.
I'm new in daz studio sdk and I need some help.
How can I get Bool Button Slide like in Parameters Pane (sorry I can't show image).
I tryied DzBoolButton, DzBoolPropertyWgt and DzStyledBoolPropertyWgt, but nothing.
Please help.

pic-20141026-000503.png
232 x 43 - 2K

Comments

  • rbtwhizrbtwhiz Posts: 2,250
    edited December 1969

    DzStyledBoolPropertyWgt contains a DzStyledBoolPropertySlider (same header).

    -Rob

  • LpProjectLpProject Posts: 41
    edited December 1969

    Thank for answer, but I tried it. And get this error
    error LNK2019: unresolved external symbol "public: __cdecl DzStyledBoolPropertySlider::DzStyledBoolPropertySlider(class QWidget *)" (??0DzStyledBoolPropertySlider@@QEAA@PEAVQWidget@@@Z) referenced in function "public: class QMxWidget * __cdecl QMxMaterial::widget(void)" (?widget@QMxMaterial@@QEAAPEAVQMxWidget@@XZ)

    This is a part of my code

    m_widget = new QMxWidget();
       QFormLayout *layout = new QFormLayout(m_widget);
       m_widget->setLayout(layout);
       
       DzStyledBoolPropertySlider *dispersionBoolButton = new DzStyledBoolPropertySlider(m_widget);
       layout->addRow("Dispersion", dispersionBoolButton)
  • rbtwhizrbtwhiz Posts: 2,250
    edited December 1969

    Seems I was a bit too short with my response... I'll expand.

    DzStyledBoolPropertySlider is the name of the class for the styled widget that you are asking about. DzStyledBoolPropertyWgt contains an instance of DzStyledBoolPropertySlider, which is declared in the same header. DzStyledBoolPropertySlider is not exported, and so is only available by way of DzStyledBoolPropertyWgt, which needs at least one DzBoolProperty added to it to operate as intended. DzStyledBoolPropertySlider is basically a DzBoolButton (which is exported) with its paintEvent reimplemented, so as to be drawn within a listview of widgets that are used to manipulate properties.

    -Rob

Sign In or Register to comment.