Niamita
17th October 2011, 12:33
Hi
I am trying to add line in a layout through coding, but i do not find name of line class.I am trying to add line which are present in qt designer toolbox.
please tell me how to add them in a layout.
One more thing when i am adding space in a gridlayout , it does not effect anything in display.
My code for adding space is
QSpacerItem *spacerItem = new QSpacerItem(300, 20, QSizePolicy::Expanding);
grid->addItem(spacerItem, 4, 0, 4, 1);
Actually i want to leave first column of layout blank.
I am trying to add line in a layout through coding, but i do not find name of line class.I am trying to add line which are present in qt designer toolbox.
please tell me how to add them in a layout.
One more thing when i am adding space in a gridlayout , it does not effect anything in display.
My code for adding space is
QSpacerItem *spacerItem = new QSpacerItem(300, 20, QSizePolicy::Expanding);
grid->addItem(spacerItem, 4, 0, 4, 1);
Actually i want to leave first column of layout blank.