0

QToolButton とテキストの配置に問題があります。

テキストを左揃えにしたいのですが、うまくいきません。

他のフォーラムで報告されているように、私は試しました:

    <i>QToolButton *button = new QToolButton;
    QString style = QString("QToolButton{text-align:left;}");
    button->setStyleSheet(style);</i>

また

    <i>QToolButton *button = new QToolButton;
    QString style = QString("text-align:left;");
    button->setStyleSheet(style);</i>

ただし、常に中央揃えです。

誰でも私を助けることができますか?

ありがとう!

4

1 に答える 1