当前位置:网站首页>Player practice 26 adding slider and window maximization
Player practice 26 adding slider and window maximization
2022-06-12 14:12:00 【Sister Suo】
1. add to positioning
2. add controls , Modify name , Modify maximum value to improve precision 
3.
In the class xplay2 Add
void Xplay2::timerEvent(QTimerEvent* e)
{
long long total = dt.totalMs;
qDebug() << "total: " << total << endl;
if (total > 0)
{
// Currently decoded pts Divide by total pts, It's a ratio
double pos = (double)dt.pts / (double)total;
qDebug()<< "pos: " << pos << endl;
int v = ui.playPos->maximum() * pos;
ui.playPos->setValue(v);
}
}
stay xplay Add a timer to the constructor of
Xplay2::Xplay2(QWidget *parent)
: QWidget(parent)
{
ui.setupUi(this);
dt.start();
startTimer(40);
}
Synchronize control refresh with video (fps=25)
边栏推荐
- Programmer interview golden classic good question / interview question 01.05 Edit once
- chrome://tracing Performance analysis artifact
- Communication flow analysis
- Explanation of static and extern keywords
- Llvm 13.1 new pass plug-in form [for win]
- Lua tvalue structure
- [advanced MySQL] query optimization principle and scheme (6)
- 简述CGI与FASTCGI区别
- [MySQL advanced] index classification and index optimization scheme (V)
- Player actual combat 16 xdecode class
猜你喜欢

注重点击,追求更多用户进入网站,可以选择什么出价策略?

Talk about the top 10 classic MySQL errors

Create a small root heap and judge the node relationship (also.C\u str() substr(),atoi(),string. Use of find())

How to realize the bidding strategy that pays more attention to transformation in the company's operation Google sem

Summary of virtual box usage problems
![[MySQL advanced] index classification and index optimization scheme (V)](/img/8b/2284783d8b81ba2e8fa45a239107ba.png)
[MySQL advanced] index classification and index optimization scheme (V)

通过loganalyzer展示数据库中的日志

Leetcode 2185. Counts the string containing the given prefix

Mémoire de l'examen d'entrée à l'université

chapter19 Allocation
随机推荐
Getting started alicloud haas510 open board DTU (version 2.0) --510-as
Interview question 17.14 Minimum number of K (almost double hundreds)
如果要打造品牌知名度,可以选择什么出价策略?
Alibaba cloud development board haas510 responds to UART serial port instructions
one × Convolution kernel of 1
公司运营中更注重转化的出价策略,如何实现? —Google sem
Details of bypassing safeseh mechanism by using modules that do not enable safeseh
SystemC time
Redis核心配置和高级数据类型
Analysis of lua source code
Wait function in SystemC
Leetcode 2176. Count equal and divisible pairs in an array
编译安装基于fastcgi模式的多虚拟主机的wordpress和discuz的LAMP架构
[wustctf2020] selfie score query -1
Running phase of SystemC
How to use Android studio to create an Alibaba cloud Internet of things app
Shell notes
Hash tables, sets, maps, trees, heaps, and graphs
拆改廣告機---業餘解壓
Player practice 11 audio resampling