How to let the user change the width of a frame

Marc Van Daele

My Qt4 application has basically two frames, each displaying more or less independent content. The user should be able to make one frame smaller (and the other one bigger)

Much like the behavior in a QTableView where a user can make one column smaller or bigger.

Is there a Qt widget supporting this? If not, any advice on how to implement this?

alexblae

Have a look into QtGui.QSplitter (http://pyqt.sourceforge.net/Docs/PyQt4/qsplitter.html). For example

# Add horizontal splitter 
horizontalSplitter = QtGui.QSplitter(QtCore.Qt.Horizontal)

# Add two widgets
horizontalSplitter.addWidget(widget1)
horizontalSplitter.addWidget(widget2)

You get a horizontal splitter that is drag-able. Hope this is what you are looking for.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to find OldPassword to let the user change it

From Dev

How to let end user change background image in XPages?

From Dev

Let user change configuration parameter

From Dev

How to let Flyout width adjust to application width?

From Dev

How to change <div>'s width by user input using jQuery/JavaScript?

From Dev

How to change the width of dynamically generated list boxes, based on user input?

From Dev

How to change the width of a cell?

From Dev

How to change the width of a cell?

From Dev

How to change text in nav menu when user change width of screen? Bootstrap 3

From Dev

How to let the width of an NSTextField be adjusted to its content?

From Dev

How to let user pick colormap?

From Dev

How to let a user input a function

From Dev

How to not let the user divide by 0?

From Dev

How to let user change text font and colour in WordPress WSIWYG text editor

From Dev

(Python) How can I let a user open a text file and then change an integer / number

From Dev

How to let any user without root change specific network(qdisc) settings?

From Dev

How can I let the width of a control be the width of the current device?

From Dev

How do I let width of table determine width of entire page

From Dev

How can I let the width of a control be the width of the current device?

From Dev

How to change width of Thunar menu width

From Dev

How to change the default frame of the App to a "sub frame"?

From Dev

How do I get the frame width of UIAlertController?

From Dev

How do I get the frame width of UIAlertController?

From Dev

How to change width of <p:panelGrid>

From Dev

How to change bootstrap columns width

From Dev

How to change width of DataGridView Columns

From Dev

how to change Excel column width

From Dev

How to change the width of bootstrap popover

From Dev

How to change width of card in flutter?

Related Related

  1. 1

    How to find OldPassword to let the user change it

  2. 2

    How to let end user change background image in XPages?

  3. 3

    Let user change configuration parameter

  4. 4

    How to let Flyout width adjust to application width?

  5. 5

    How to change <div>'s width by user input using jQuery/JavaScript?

  6. 6

    How to change the width of dynamically generated list boxes, based on user input?

  7. 7

    How to change the width of a cell?

  8. 8

    How to change the width of a cell?

  9. 9

    How to change text in nav menu when user change width of screen? Bootstrap 3

  10. 10

    How to let the width of an NSTextField be adjusted to its content?

  11. 11

    How to let user pick colormap?

  12. 12

    How to let a user input a function

  13. 13

    How to not let the user divide by 0?

  14. 14

    How to let user change text font and colour in WordPress WSIWYG text editor

  15. 15

    (Python) How can I let a user open a text file and then change an integer / number

  16. 16

    How to let any user without root change specific network(qdisc) settings?

  17. 17

    How can I let the width of a control be the width of the current device?

  18. 18

    How do I let width of table determine width of entire page

  19. 19

    How can I let the width of a control be the width of the current device?

  20. 20

    How to change width of Thunar menu width

  21. 21

    How to change the default frame of the App to a "sub frame"?

  22. 22

    How do I get the frame width of UIAlertController?

  23. 23

    How do I get the frame width of UIAlertController?

  24. 24

    How to change width of <p:panelGrid>

  25. 25

    How to change bootstrap columns width

  26. 26

    How to change width of DataGridView Columns

  27. 27

    how to change Excel column width

  28. 28

    How to change the width of bootstrap popover

  29. 29

    How to change width of card in flutter?

HotTag

Archive