Giter Club home page Giter Club logo

Comments (5)

annejan avatar annejan commented on May 13, 2024

I would prefer adding a separate checkbox (and number box) for this option.

In short adding a configurable feature requires you to:

  1. Add (private) variable(s) in mainwindow.h

  2. Add the stuff in dialog.cpp (and .h and .ui) for the config interface.

  3. In mainwindow.cpp read variables from settings in checkConfig method.
    In config set variables in dialog, read them back (after ok) and update settings.

  4. Use them new variables :-)

I think it's a smart thing to do this kind of thing in a separate branch in git.

from qtpass.

karlgrz avatar karlgrz commented on May 13, 2024

Yea, definitely separate branch. Thanks for the pointers, I'll take a look and throw in the towel if the portion of my brain allocated to C++ is overflowed :-)

from qtpass.

annejan avatar annejan commented on May 13, 2024

A nice example is the first parts of 36507b9 from the templates branch . .
Just the basic boiler-plating for adding (in this case a whole new tab with) new configuration options and checkbox dependent enabling/disabling of a sub-option.

from qtpass.

karlgrz avatar karlgrz commented on May 13, 2024

Alright, I've got something working, but it looks like *.o is in my commit. Need to clean that up and then I will submit pull request.

from qtpass.

annejan avatar annejan commented on May 13, 2024

Nice work!

from qtpass.

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.