Agreed! I thought I could wing it but it is obvious that I need more references....Any suggestions on a good C++ book?
Added after 48 minutes:
Okay, after beating myself for being so dense, I finally saw the light and got this to work. While I am researching the best means of learning C++ I just have one more question. When this code runs, my second form "signon" paints first and only after that form is closed will my MainWindow paint. This form is modal to the MainWindow. How would I get the MainWindow to load first and the signon form to load on top?
MainWindow.cpp:
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "signon.h"
{
ui->setupUi(this);
ui->tableWidget->hide();
openSignon();
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::openSignon(){
Signon signon(this);
signon.exec();
}
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "signon.h"
MainWindow::MainWindow(QWidget *parent): QMainWindow(parent),ui(new Ui::MainWindow)
{
ui->setupUi(this);
ui->tableWidget->hide();
openSignon();
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::openSignon(){
Signon signon(this);
signon.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks