August 5, 2011

M_31 M_31
Lab Rat
99 posts

[SOLVED]Want to expand QTextEdit ..

 

Hi , I would like to expand QTextEdit which is in QGroupBox and again the QGroupBox in QStacked Widget.
Please refer the below picture
I tried all the H-Spacer & V-Spacer with H-Layout & V-layout Control..
But i am not able to expand my TextEdit control , when the main dialog window get expand by mouse
I can see only the stacked Widget alone getting expanded nothing else..
Please let me know ,whether i am doing anything wrong.

I want to have the same setup like in Qt-Creator , under project->manage ( we will be getting popup dialog window)

  1. __________________________________
  2. |  QStackedWidget                 |
  3. |    _______________________      |
  4. |   |   QGroupBox          |      |
  5. |   |     ___________      |      |
  6. |   |    |QTextEdit |      |      |
  7. |   |    |__________|      |      |
  8. |   |______________________|      |
  9. |                                 |
  10. |_________________________________|

2 replies

August 5, 2011

Gerolf Gerolf
Robot Herder
3286 posts

Each widget with child widgets must have layouts, so the group box needs one, the parent of the group box and the main window.

 Signature 

Nokia Certified Qt Specialist.
Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

August 8, 2011

M_31 M_31
Lab Rat
99 posts

Thanks Gerolf …its working now..

 
  ‹‹ Stretchable QToolBar      QNetworkAccessManager number of requests limitation (interested in qt 4.8) ››

You must log in to post a reply. Not a member yet? Register here!