Skip to content

Instantly share code, notes, and snippets.

@lpranam
Created December 12, 2018 05:58
Show Gist options
  • Save lpranam/0390a491a0546bc69d13266f5121743e to your computer and use it in GitHub Desktop.
Save lpranam/0390a491a0546bc69d13266f5121743e to your computer and use it in GitHub Desktop.
This gist is created for Google Code-In 2018 task "Tutorial - 1 Understanding signals and slots" of KDE.(https://codein.withgoogle.com/dashboard/tasks/5748060836593664/)

In this task, you are supposed to create a simple dialogue box. This dialogue box will have only a single slider widget in it. This slider will control the background colour of the dialogue box.

Steps:

  1. Create a simple dialogue box
  2. Add a slider to it.
  3. Now create a slot for valueChanged()
  4. Use styleSheet property of dialogue to change its colour (you can use CSS properties in styleSheet)

For submission:

  1. submit GitHub repository link
  2. Submit video/screenshot of your running program(video is preferable)

useful links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment