help w/ therecipe/qt

96 views
Skip to first unread message

rob

unread,
Feb 29, 2020, 4:49:07 PM2/29/20
to golang-nuts
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


rob

unread,
Mar 1, 2020, 12:14:55 AM3/1/20
to Rob Muhlestein, golang-nuts
"Getting Started w/ Qt 5," by Benjamin Baka.  Published by Packtpub


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.ioskilstak.io • twitch.tv/rwxrob
>
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
>> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>>
>> 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...@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.
>

Justin Israel

unread,
Mar 1, 2020, 12:18:36 AM3/1/20
to golang-nuts
You are likely to get the most focused support by checking with the project:
https://github.com/therecipe/qt/blob/master/README.md

Maybe asking on their slack channel if you can't figure it out from the Qt docs + therecipe/qt api?

rob

unread,
Mar 1, 2020, 5:48:55 PM3/1/20
to Rob Muhlestein, golang-nuts
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.ioskilstak.io • twitch.tv/rwxrob
>
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> On Saturday, February 29, 2020 11:48 AM, rob <drro...@fastmail.com> wrote:
>

Justin Israel

unread,
Mar 1, 2020, 8:17:24 PM3/1/20
to r...@drrob1.com, Rob Muhlestein, golang-nuts

That one shows how to use QKeySequence constants and custom keys.


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.ioskilstak.io • twitch.tv/rwxrob
>
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> On Saturday, February 29, 2020 11:48 AM, rob <drro...@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...@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 a topic in the Google Groups "golang-nuts" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-nuts/qvswkktCbYg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golang-nuts...@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.

rob

unread,
Mar 1, 2020, 11:09:32 PM3/1/20
to Justin Israel, r...@drrob1.com, Rob Muhlestein, golang-nuts

Yes, thanks Justin.  It looks that's just what I need.

--rob

Reply all
Reply to author
Forward
0 new messages