当前位置:网站首页>Qt| control qscrollbar display position
Qt| control qscrollbar display position
2022-07-24 19:37:00 【InfoQ】
1: Get... In real time QScrollBar Scroll position
connect(ui.scrollArea->verticalScrollBar(), &QScrollBar::valueChanged, ui.widget, &QScrollAreaWidget::ChangedScrollBarData);
2: Appoint QScrollBar The display position of
//1: Get the total length of the scroll bar
int nTotalValue = ui.scrollArea->verticalScrollBar->value();
//2: Set the position of the scroll bar in half .
int nNewLoaction = nTotalValue*0.5;
ui.scrollArea->verticalScrollBar->setvalue(nNewLocation);
边栏推荐
- Sword finger offer 47. the maximum value of gifts
- Classic interview questions of interface testing: what is the difference between session, cookie and token?
- day 1
- Unity2d~ game practice of decrypting Zhou mu (completed in three days)
- mysql排序.按字段值排序
- 信道状态信息(CSI)共轭相乘去噪法
- 【校招面经】8道指针面试真题,快来检测自己掌握了几道。
- asp. Net core, C # summary about path
- Colon sorting code implementation
- Hidden Markov model HMM
猜你喜欢

day 3

Leetcode652 finding duplicate subtrees

Use of paging assistant PageHelper

Day 10 (inheritance, rewriting and use of super)

Day 9 (this keyword and experiment)
思源笔记 v2.1.2 同步问题

Description of large and small end mode

Analysis of the basic concept of digital warehouse

Hucang integrated release of full data value, sequoiadb V5.2 online conference heavy attack

Pay close attention! List of the latest agenda of 2022 open atom open source Summit
随机推荐
Sword finger offer 40. minimum number of K
Sword finger offer 47. the maximum value of gifts
[understanding of opportunity-49]: three seasons and cognitive dimension
【无标题】
Why are there loopholes in the website to be repaired
Virbox compiler, which supports source code encryption of the whole platform and architecture
从服务器批量下载文件到本地
Channel state information (CSI) conjugate multiplication denoising method
Pure C implementation -------- Nicolas theorem
MySQL version 5.7.9 SQL_ mode=only_ full_ group_ By question
MySQL final chapter
Detailed explanation of ELF format (I)
Calendar common methods
Environment preparation of Nacos configuration center
Cmake series tutorial 2 HelloWorld
Database index: index is not a panacea
Using videoview to realize video playback in turns
JS part
Meshlab&PCL ISS关键点
MySQL index principle and query optimization "suggestions collection"