The exact problem is one of the first in chapter 4
MainWindow::MainWindow()
{
setWindowTitle("SRM System");
setFixedSize(500, 500);
QPixmap newIcon("new.png");
QPixmap openIcon("open.png");
QPixmap closeIcon("close.png");
// Setup File Menu
fileMenu = menuBar()->addMenu("&File");
quitAction = new QAction(closeIcon, "Quit", this);
quitAction->setShortcuts(QKeySequence::Quit);
newAction = new QAction(newIcon, "&New", this);
newAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_C));
openAction = new QAction(openIcon, "&New", this);
openAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_O));
fileMenu->addAction(newAction);
fileMenu->addAction(openAction);
fileMenu->addSeparator();
fileMenu->addAction(quitAction);
helpMenu = menuBar()->addMenu("Help");
aboutAction = new QAction("About", this);
aboutAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_H));
helpMenu->addAction(aboutAction);
// Setup Signals and Slots
connect(quitAction, &QAction::triggered, this, &QApplication::quit);
}
Thanks
--rob solomon
On 2/29/20 2:55 PM, Rob Muhlestein wrote:
Hi there Rob, would you mind sharing that book so I can share it with people on
my rwxrob.live stream. I like the idea of doing what you are doing.
I might be able to help you past that if I had the exact problem.
---
“Mr. Rob” Muhlestein
/^((Found|Teach|Hack)er|(Men|Jani)tor|C[A-Z]*O)$/
r...@robs.io • skilstak.io • twitch.tv/rwxrob
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Saturday, February 29, 2020 11:48 AM, rob <drrob...@fastmail.com> wrote:
Hi. I'm trying to learn therecipe/qt by working my way thru a book
using C++ examples and translating them into Go. I'm stuck at
QKeySequence stuff.
My computer runs ubuntu 18.04, and I installed Go 1.13.8 on it, along w/
all the Qt development stuff from qt.io, and therecipe/qt.
Where are there resources for me to go thru on doing what I'm trying?
Thanks
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/7b6da064-cf87-513c-783f-379f2bfd0eed%40fastmail.com.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/3d8b80e0-009b-7360-2d69-53e9c489d483%40fastmail.com.