background top icon
background center wave icon
background filled rhombus icon
background two lines icon
background stroke rhombus icon

Download "Qt Tutorial 023: PushButton"

input logo icon
Video tags
|

Video tags

Thorsten Geppert
Subtitles
|

Subtitles

subtitles menu arrow
  • ruRussian
Download
00:00:02
we'll take a look at the push button
00:00:03
let's create a new
00:00:06
project a bag of chips application I
00:00:09
want the right path here
00:00:11
I'll do that again in the grid
00:00:14
bronze gate then you can
00:00:16
download
00:00:21
it would be the 0 23
00:00:25
button
00:00:29
so we leave everything at standard
00:00:40
and take a look at the
00:00:43
windows and then we
00:00:48
just add three per exciting
00:00:52
we just make four pieces so
00:00:55
the first one remains a normal push
00:00:58
button the second one should be a jacket push
00:01:02
button
00:01:05
this is then the equivalent to a
00:01:07
toggle button
00:01:09
and this is supposed to be a repeat push button
00:01:16
and we then also end our
00:01:19
application once
00:01:22
so we make a small layout
00:01:24
out of it
00:01:29
that was wrong and
00:01:35
name the things correctly stay with push
00:01:37
button at push button at jacket
00:01:40
push button was jack push
00:01:46
push button end
00:01:49
slipped
00:01:52
and quit we call quit push button
00:01:59
so right click on push occurs push
00:02:02
button then slot clicks
00:02:07
and then we embed another bright
00:02:10
file with the debug points
00:02:18
and then we can generate outputs
00:02:29
So we could just save it
00:02:37
get everything once on Twitter we fly
00:02:39
out perfect
00:02:41
we do it with all the other
00:02:43
push buttons too slot clicks ok
00:02:51
slot clicks ok and the
00:02:56
same thing here again
00:03:00
and then I insert everywhere on July 1st
00:03:10
button clicks
00:03:13
and maybe Let's
00:03:16
just
00:03:21
check that push button clicks
00:03:28
and then
00:03:35
repeat push button clicks
00:03:38
here now do a little
00:03:41
special thing here we'll write
00:03:44
a variable to it
00:03:48
maybe we'll do it like this
00:03:52
constantly and click equal to zero like this and
00:03:57
give us that number of clicks
00:04:03
if we now simply use a mouse to
00:04:05
save all
00:04:09
then you can try it out once
00:04:11
push button clicks goes general push
00:04:15
button clicks goes repeat push button
00:04:17
clicks goes and has now been
00:04:19
executed once twice three times and so on
00:04:21
the ipi push button is one A very
00:04:23
special thing comes to mind right away.
00:04:25
In football there is a completely
00:04:28
normal button. Ultimately, when we
00:04:31
press it, some action is
00:04:32
carried out, namely the actions that we put
00:04:34
behind one of the numerous slots.
00:04:36
We can
00:04:38
just take a look at them here which are included
00:04:41
if we right-click here and a
00:04:43
slot then you can see there is another
00:04:45
click, but is it clicked or is it
00:04:47
not clicked? is it pressed? is it
00:04:50
released? is it staggered and
00:04:51
then there are classes that are different from the other
00:04:53
derived or parent classes
00:05:00
You can use different zlotys for things like this, a fancy picture push
00:05:04
button is, for example, equivalent to
00:05:07
a talk busch get to know your partner,
00:05:10
click on it and then it stays clicked
00:05:19
If you click on it by default
00:05:22
then it will be blue here under mac os
00:05:24
then you can see that when pressed
00:05:27
under other operating systems or
00:05:28
other gui
00:05:30
implementations it
00:05:31
might look a little different and
00:05:33
if we just
00:05:34
leave it out and run it, compile it and
00:05:38
run it then we can
00:05:40
Click on them and click off.
00:05:46
We could now
00:05:49
simply introduce a test push button
00:05:50
here
00:05:54
with these here and
00:05:56
simply call it test
00:06:01
[Music]
00:06:05
so
00:06:09
so test check check
00:06:14
button
00:06:16
then we create a slot for it
00:06:18
or simply connect it
00:06:21
and then we could just check here
00:06:24
kyu the cheek
00:06:28
jack
00:06:31
roush button down
00:06:36
the chicken push button is checked
00:06:44
and so you can finally
00:06:46
access it
00:06:54
we click on it once it comes if
00:06:57
I want it I can get it again and
00:07:00
we come roux you can always use it
00:07:03
status of the post of the check
00:07:05
screen of Spain from check or
00:07:07
check the three
00:07:09
we then come to the repeat push button
00:07:12
the repeat push button has a
00:07:15
special feature if I hold it down
00:07:19
then the command or the slot
00:07:22
behind it is called up as often
00:07:24
as I do Ultimately there is a place,
00:07:26
yes, there are the properties here:
00:07:29
turn it on this time because there is
00:07:32
audio replay, which means that it waits
00:07:35
a little while until it triggers for the first
00:07:37
time and the
00:07:39
authority interval lasts
00:07:41
until this slot is triggered again
00:07:44
if
00:07:46
we just do that now Execute it,
00:07:51
I press it, it just happens to you as
00:07:54
normal as with the push button and
00:07:56
now I hold it down and we
00:07:57
see it will always trigger the slot that
00:08:00
is connected behind it.
00:08:07
There is another useful thing about
00:08:11
push buttons and that is the default push
00:08:13
button For some inexplicable
00:08:17
reason it doesn't work on my Mac,
00:08:19
so I'll just explain it
00:08:21
here: there are default and auto default
00:08:24
auto default means a push button
00:08:27
can automatically become the standard push
00:08:29
button that it is the push
00:08:32
button that is triggered when you, for
00:08:33
example, in
00:08:36
You have probably already
00:08:38
seen an input field that is suppressed during a search, for example, that there is
00:08:40
an input field where you enter
00:08:42
the search and press enter next to it,
00:08:45
but also in Baden where it
00:08:46
says search or find, for example,
00:08:48
and this push button would then
00:08:49
be triggered
00:08:51
You can make a push button here with default
00:08:55
because the torture is tensioned,
00:08:57
it is then
00:08:59
activated so it looks like a
00:09:01
check apple push button that is checked
00:09:04
and under, for example, Windows and
00:09:08
Linux and so on it would
00:09:10
be triggered automatically
00:09:12
Even if it's not focused, if
00:09:14
I do something within my mask
00:09:16
and press enter, as I said
00:09:19
here on Mac OS, at least under the
00:09:21
kit version here it doesn't work.
00:09:22
It surprises me a bit as
00:09:24
I know press enter here but it
00:09:27
works on the other systems
00:09:28
Without further ado,
00:09:30
these are the most important
00:09:32
features of the push button.
00:09:35
Of course, you can also reshape it yourself, just like almost
00:09:37
any other budget, with style sheets and
00:09:39
so on. You have a
00:09:42
thousand other options that you
00:09:44
can set here, how big should they
00:09:46
be, how should they be what
00:09:49
should travel look like and so on which
00:09:51
cursor should be over it if you
00:09:54
move the mouse over it for example and
00:09:55
so on
00:09:57
you just have to
00:09:59
look at it a bit emergency check out my help
00:10:02
and that's it for now to push button
00:10:05
if you have any If you have any questions,
00:10:06
please write them to me in the comments
00:10:07
and I'll say goodbye until next time

Description:

In diesem Video widmen wir uns dem PushButton (QPushButton) und den unterschiedlichen Funktionen. - Qt: https://www.qt.io/ - Website: https://www.tgeppert.de/ - Blog: https://www.tgeppert.de/blog/ - Twitter: https://twitter.com/ThorstenGeppert - Facebook: https://www.facebook.com/unsupportedbrowser - XING: https://login.xing.com/?dest_url=https%3A%2F%2Fwww.xing.com%2Fprofile%2FThorsten_Geppert2&signup_channel=profileapp - LinkedIn: https://www.linkedin.com/in/thorsten-geppert-83a866137/ - instagram: https://www.facebook.com/unsupportedbrowser - Impressum: https://www.tgeppert.de/impressum/

Preparing download options

popular icon
Popular
hd icon
HD video
audio icon
Only sound
total icon
All
* — If the video is playing in a new tab, go to it, then right-click on the video and select "Save video as..."
** — Link intended for online playback in specialized players

Questions about downloading video

mobile menu iconHow can I download "Qt Tutorial 023: PushButton" video?mobile menu icon

  • http://unidownloader.com/ website is the best way to download a video or a separate audio track if you want to do without installing programs and extensions.

  • The UDL Helper extension is a convenient button that is seamlessly integrated into YouTube, Instagram and OK.ru sites for fast content download.

  • UDL Client program (for Windows) is the most powerful solution that supports more than 900 websites, social networks and video hosting sites, as well as any video quality that is available in the source.

  • UDL Lite is a really convenient way to access a website from your mobile device. With its help, you can easily download videos directly to your smartphone.

mobile menu iconWhich format of "Qt Tutorial 023: PushButton" video should I choose?mobile menu icon

  • The best quality formats are FullHD (1080p), 2K (1440p), 4K (2160p) and 8K (4320p). The higher the resolution of your screen, the higher the video quality should be. However, there are other factors to consider: download speed, amount of free space, and device performance during playback.

mobile menu iconWhy does my computer freeze when loading a "Qt Tutorial 023: PushButton" video?mobile menu icon

  • The browser/computer should not freeze completely! If this happens, please report it with a link to the video. Sometimes videos cannot be downloaded directly in a suitable format, so we have added the ability to convert the file to the desired format. In some cases, this process may actively use computer resources.

mobile menu iconHow can I download "Qt Tutorial 023: PushButton" video to my phone?mobile menu icon

  • You can download a video to your smartphone using the website or the PWA application UDL Lite. It is also possible to send a download link via QR code using the UDL Helper extension.

mobile menu iconHow can I download an audio track (music) to MP3 "Qt Tutorial 023: PushButton"?mobile menu icon

  • The most convenient way is to use the UDL Client program, which supports converting video to MP3 format. In some cases, MP3 can also be downloaded through the UDL Helper extension.

mobile menu iconHow can I save a frame from a video "Qt Tutorial 023: PushButton"?mobile menu icon

  • This feature is available in the UDL Helper extension. Make sure that "Show the video snapshot button" is checked in the settings. A camera icon should appear in the lower right corner of the player to the left of the "Settings" icon. When you click on it, the current frame from the video will be saved to your computer in JPEG format.

mobile menu iconWhat's the price of all this stuff?mobile menu icon

  • It costs nothing. Our services are absolutely free for all users. There are no PRO subscriptions, no restrictions on the number or maximum length of downloaded videos.