You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

hwsun

Beginner

  • "hwsun" is male
  • "hwsun" started this thread

Posts: 24

Location: Singapore

Occupation: R & D

  • Send private message

1

Thursday, August 3rd 2006, 9:01am

how to show checkBox out of boundary

Dear All, it is better for me to announce the problem below:

When I add checkbox(pos_x = 10, pox_y = 200) in a textbrowser (width = 100, height = 100). the checkbox will be cut without being displayed because its position is out of the range of textbrowser.

However, textbrowser will not judge this out range case and generate scrollbar automatically.

In this case, I can not access the checkbox.
;(
Haiwei
R&D Engineer
Singapore

maverick_pol

Intermediate

  • "maverick_pol" is male

Posts: 364

Location: Lublin, Poland

Occupation: Student/C++ Developer

  • Send private message

2

Thursday, August 3rd 2006, 9:51am

Hi,

I like to code quite a lot, but sometimes it's a good idea to use Qt designer to plan you Widget, it's quite easier, but what's more and what's the most important it's faster.
Another solution is to, place a QSpacer object(vertical or horizontal....depands on your plan).
If these ideas won't help you, write and I'll try to think about other solutions.

hwsun

Beginner

  • "hwsun" is male
  • "hwsun" started this thread

Posts: 24

Location: Singapore

Occupation: R & D

  • Send private message

3

Thursday, August 3rd 2006, 11:01am

use resizecontents to solve?

some guys mentions that resizecontents() may help?
Haiwei
R&D Engineer
Singapore

hwsun

Beginner

  • "hwsun" is male
  • "hwsun" started this thread

Posts: 24

Location: Singapore

Occupation: R & D

  • Send private message

4

Wednesday, August 9th 2006, 10:54am

RE: how to show checkBox out of boundary

Finally, I get the answer. below it the rough solution:

1) GroupBox = new GroupBox("GroupBoxName", ScrollView->viewport());

2) GroupBox Groups all ButtonGroups

3) ScrollView->addChild(GroupBox)
Haiwei
R&D Engineer
Singapore