当前位置:网站首页>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);
边栏推荐
- strlen函数剖析和模拟实现
- Leetcode652 finding duplicate subtrees
- Anaconda installs labelimg (super simple and available)
- [in depth study of 4g/5g/6g topic -39]: urllc-10 - in depth interpretation of 3GPP urllc related protocols, specifications and technical principles -3- how to distinguish urllc services? Detailed expl
- Use of paging assistant PageHelper
- How to export map files tutorial
- asp. Net coree file upload and download example
- Codeforces round 580 (Div. 2) c- almost equal [Law]
- day 2
- [laser principle and application -6]:q switching element and Q drive circuit board
猜你喜欢

Tencent Browser service TBS usage

How to export map files tutorial

Hidden Markov model HMM

Clion configuring WSL tool chain

Description of large and small end mode

【JVM学习03】类加载与字节码技术
![[JVM learning 03] class loading and bytecode Technology](/img/b4/9482b02b58580171235fd4c36129e9.png)
[JVM learning 03] class loading and bytecode Technology

Leetcode652 finding duplicate subtrees

Machine learning_ Data processing and model evaluation

Why are there loopholes in the website to be repaired
随机推荐
Installation and use of lsky Pro lancong drawing bed: a drawing bed program for online uploading and managing pictures
Hold the C pointer
Decorator of function
Decision tree_ ID3_ C4.5_ CART
Oneinstack installation and configuration PHP 8.1 and MySQL 8.0-oneinstack site building novice tutorial
Anaconda installs labelimg (super simple and available)
拦截器和过滤器
First knowledge database
strlen函数剖析和模拟实现
How to select software dongle
Thread theory knowledge
Rotation matrix derivation process
Day 5 (array)
信道状态信息(CSI)共轭相乘去噪法
Meshlab&PCL ISS关键点
文献阅读:GoPose 3D Human Pose Estimation Using WiFi
Codeforces round 580 (Div. 2) c- almost equal [Law]
Common methods of string class
Colon sorting code implementation
Literature reading: gopose 3D human pose estimation using WiFi