[질문]QMultiLineEdit 중앙 정렬 질문 드립니다.
글쓴이: paeksj98 / 작성시간: 금, 2013/07/12 - 12:02오후
안녕하세요. 중앙 정렬이 안되서 질문 드립니다.
멀티라인 에디트는 중앙 정렬이 안되나요..??
다른건 잘되는데 멀티 라인만 안되서요.
코드 아래에 있는걸 적용을 해봐도 안되네요.
혹시 중앙 정렬할수 있는 방법이 따로 있나요.
m_pLine = new QMultiLineEdit(m_pWidget);
m_pLine->setFont(font);
m_pLine->setFrameStyle(QFrame::Box | QFrame::Plain);
m_pLine->setAlignment( AlignCenter );
m_pLine->setLineWidth(2);
m_pLine->setGeometry(QRect(20,70,280,160));
m_pLine->setText("center");
m_pLine->setFocusPolicy(NoFocus);
m_pLine->show(); AlignHorizontal_Mask = AlignLeft | AlignRight | AlignHCenter | AlignJustify,
AlignTop = 0x0010,
AlignBottom = 0x0020,
AlignVCenter = 0x0040,
AlignVertical_Mask = AlignTop | AlignBottom | AlignVCenter,
AlignCenter = AlignVCenter |
Forums:


댓글 달기