Hi @ll,
i use QT 3.3.3 Windows Version:
I can't align my QPushButtons on the left side it will be everytime aligned to the right side.
Here is the code:
m_wordlistBox = new QVBox( m_splitterRight, "wordListBox" );
if ( m_wordlistBox ) {
m_keyInfo2 = new sv::keyInfoWidget( m_wordlistBox, "wordlistInfo" );
//Buttons in a QHBox
m_wordlistHBox = new QHBox( m_wordlistBox, "m_wordlistControls" );
if ( m_wordlistHBox ) {
m_wordlistHBox->setSpacing( 3 );
m_wordlistEntryRename = new QPushButton( "Rename", m_wordlistHBox, "m_wordlistEntryRename" );
m_wordlistEntryInsert = new QPushButton( "Insert", m_wordlistHBox, "m_wordlistEntryInsert" );
m_wordlistEntryDelete = new QPushButton( "Delete", m_wordlistHBox, "m_wordlistEntryDelete" );
m_wordlistEntryImportFromFile = new QPushButton( "<Import...>", m_wordlistHBox, "m_wordlistEntryImportFromFile" );
m_wordlistHBox->layout()->addItem( new QSpacerItem( 1, 1, QSizePolicy::Expanding ) );
}
m_wordlist = new sv::wordListViewer( m_wordlistBox, "wordlist" );
}
Thanks for helping!!!
Cu,
DevCow