Hi, I have encountered a weird problem:

Qt Code:
  1. hctrl = new QTextBrowser();////////////////////////////
  2. hctrl->setReadOnly(TRUE);
  3.  
  4. hctrl->setFixedHeight(150);
  5.  
  6. QSplitter* LeftPanel=new QSplitter(Qt::Vertical);
  7. LeftPanel->setFixedWidth(18);
  8. LeftPanel->setFixedHeight(150);
  9.  
  10. QPushButton* quickButton=new QPushButton("@",LeftPanel);
  11. QPushButton* focusButton=new QPushButton("F",LeftPanel);
  12. QPushButton* infoButton=new QPushButton("I",LeftPanel);
  13. QPushButton* zoomButton=new QPushButton("Z",LeftPanel);
  14. QPushButton* firstButton=new QPushButton("H",LeftPanel);
  15. QPushButton* lastButton=new QPushButton("E",LeftPanel);
  16. QPushButton* closeButton=new QPushButton("C",LeftPanel);
  17.  
  18.  
  19. clustercanvas= new QGLWidget;
  20. clustercanvas->setFixedWidth(325);
  21. clustercanvas->setFixedHeight(150);
  22. panel = new QSplitter(Qt::Horizontal);
  23. panel->addWidget(LeftPanel);
  24. panel->addWidget(hctrl);
  25. panel->addWidget(clustercanvas);
To copy to clipboard, switch view to plain text mode 

However, the display is like this:


The width of the left part (marked by red pen) is actually 360 instead of 18.

Why? How can I keep the width of the left part to be 18?

Thanks a lot!