Giter Site home page Giter Site logo

Comments (3)

gstark667 avatar gstark667 commented on August 24, 2024

https://github.com/gstark31897/Akai/blob/master/client/mainwindow.cpp check out how addFriendAction is constructed and look at all the call to connect for it, basically, the QAction object needs to be constructed and the qobject's triggered signal needs to be connected to whatever the current qobject's constructor is using.

I'm not sure how i want to manage the contributors yet, so make a fork of the repo, make a branch in you fork (off of develop please) and make a pull request once you're finished.

Feel free to ask any questions if you get stuck.

from akai-old.

zackerydev avatar zackerydev commented on August 24, 2024

I edited the project and it now compiles for me on Ubuntu, along with the edits found at https://github.com/zgriesinger/Akai I had to run "sudo apt-get install qtmultimedia5-dev" to install some dependencies to fix audio issues. Functionality may or may not work but at least it compiles.

from akai-old.

gstark667 avatar gstark667 commented on August 24, 2024

So the changes look good so far, you are right in suspecting that it won't work though.

connect(addFriendAction, &QAction::triggered, m_addFriendDialog, &AddFriendDialog::show);

above is an example for connecting a signal to a slot (read up on this in the qt docs if you havent yet)
The initial implementation that you changed was using a shortcut that only wrote out the latter half, basically you have to add the connect call in or the buttons won't do anything when they're pushed.

from akai-old.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.