当前位置:网站首页>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);
边栏推荐
- Summary of articles in 2020
- Pay close attention! List of the latest agenda of 2022 open atom open source Summit
- 2019 Hangzhou Electric Multi School Game 7 6651 final exam [Law + thinking]
- MySQL final chapter
- The ark compiler is coming. What about APK reinforcement
- Sword finger offer 52. The first common node of the two linked lists
- Zooinspector Download
- C language implementation of raii
- Unity code imports packages through package manager
- Classic interview questions of interface testing: what is the difference between session, cookie and token?
猜你喜欢

Literature reading: gopose 3D human pose estimation using WiFi

Day 9 (this keyword and experiment)

strlen函数剖析和模拟实现

LSTM and Gru of RNN_ Attention mechanism

How does PostgreSQL decide PG's backup strategy

Techempower web framework performance test 21st round results release --asp Net core continue to move forward

文献阅读:GoPose 3D Human Pose Estimation Using WiFi

Implement a proxy pool from 0

从服务器批量下载文件到本地

拿捏C指针
随机推荐
day 1
Jedi survive and eat chicken F12 screenshot save path reference
Sword finger offer 53 - I. find the number I in the sorted array
MySQL index principle and query optimization "suggestions collection"
[Huawei lyevk-3861a intelligent IOT development board evaluation] unpacking experience and Hisilicon hi3861v100 chip learning experience
Detailed explanation of ELF format (I)
文献阅读:GoPose 3D Human Pose Estimation Using WiFi
Analysis and Simulation of strlen function
Implement a proxy pool from 0
Interceptors and filters
Timed task framework
6.0 holes stepped by fragment request permission in the system
How to use the interface control telerik UI for WinForms development step progress bar?
Getting started with COM programming 1- creating projects and writing interfaces
Data transmission of different fragments in the same activity
Flink window & time principle
Mysql8.0 learning record 19 - Page segments and tablespaces
Installation and use of lsky Pro lancong drawing bed: a drawing bed program for online uploading and managing pictures
Basic idea of regularization
2019 Hangzhou Electric Multi School Game 9 6684 Rikka with game [game question]