Important: Please read the Qt Code of Conduct -

giving a custom button class new properties

  • hello,

    i would like to give my custom button class some new properties to position the button.
    that overrides the existing.

    const QSize btnSize = QSize(150, 150);

    what would be most "hardcore" approach possible.
    keeping in mind if the size is 50 x 50.

    just doing some positioning experiments.

  • Lifetime Qt Champion


    What kind of properties do you have in mind ?
    You can move your button from the widget that created it with the pos properly method for example.

Log in to reply