当前位置:网站首页>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)
边栏推荐
- Recursion of subviews of view
- 通信流量分析
- Démontage et modification de la machine publicitaire - décompression amateur
- How to brush leetcode
- What is automatic bidding? What are its advantages?
- Leetcode 2176. Count equal and divisible pairs in an array
- For cross-border e-commerce, the bidding strategy focusing more on revenue - Google SEM
- Tlm/systemc: TLM socket binding problem
- 1414. minimum number of Fibonacci numbers with sum K
- Remote code injection
猜你喜欢

Crack WinRAR to ad pop-up window
![[wustctf2020] selfie score query -1](/img/90/e4c2882357e0a1c6a80f778887e3f5.png)
[wustctf2020] selfie score query -1

Alibaba cloud development board haas510 parses serial port JSON data and sends attributes

Conversion of player's actual 10 pixel format and size

Single bus temperature sensor 18B20 data on cloud (Alibaba cloud)

TestEngine with ID ‘junit-vintage‘ failed to discover tests

Redis核心配置和高级数据类型

阿里云开发板HaaS510连接物联网平台--HaaS征文

Des File Encryptor based on MFC framework

Relevant knowledge points of cocoapods
随机推荐
SystemC time
Des File Encryptor based on MFC framework
Codeforces Round #798 (Div. 2)(A~D)
[MySQL advanced] index classification and index optimization scheme (V)
阿裏雲開發板HaaS510報送設備屬性
Design of PLC intelligent slave station based on PROFIBUS DP protocol
Implementation of Ackermann function with simulated recursion
CUDA error: CUBLAS_ STATUS_ NOT_ INITIALIZED when calling `cublasCreate(handle)`
Notepad common settings
肝了一个月的原创小袁个人博客项目开源啦(博客基本功能都有,还包含后台管理)
lua 常用内置函数
Redis核心配置和高级数据类型
NotePad 常用设置
Go language functions as parameters of functions
Introduction to database system (Fifth Edition) notes Chapter 1 Introduction
IAT hook hijacking process API call
one × Convolution kernel of 1
Brush one question every day /537 Complex multiplication
Running phase of SystemC
1414. minimum number of Fibonacci numbers with sum K