QHeaderView * QTableView::horizontalHeader()void QHeaderView::setDefaultSectionSize (int size)
#ifndef MAINWINDOW_H#define MAINWINDOW_H#include <QMainWindow>namespace Ui {class MainWindow;}class MainWindow : public QMainWindow{ Q_OBJECT public: explicit MainWindow(QWidget *parent = 0); ~MainWindow(); private slots: void on_reconnectButton_clicked(); void mySlot();private: Ui::MainWindow *ui;};#endif // MAINWINDOW_H
#include <QtGui>#include "mainwindow.h"#include "ui_mainwindow.h"MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow){ ui->setupUi(this);}MainWindow::~MainWindow(){ delete ui;}void MainWindow::on_reconnectButton_clicked(){}void MainWindow::mySlot(){}