工具栏如何在顶栏中实现,例如,Tiled
是否已完成?在Qt中组合工具栏和标题栏
通常情况下,工具栏看起来像如下:它
示例代码如何目前:
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = nullptr) {
auto *tbar = new QToolBar();
tbar->addWidget(new QPushButton("Push Me"));
this->addToolBar(tbar);
}
};
你为什么不看瓷砖的来源? –