napajejenunedk0
3rd May 2011, 17:46
#include <QtGui/QApplication>
#include <QComboBox>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QComboBox cb;
cb.setLayoutDirection( Qt::RightToLeft );
cb.addItem( "Abc" );
cb.addItem( "Abc (Abc)" );
cb.addItem( "(Abc)" );
cb.addItem( "(Abc) Abc" );
cb.addItem( "()" );
cb.addItem( "a (a) a" );
cb.show();
return a.exec();
}
Create an empty Qt Gui application project and run the code above.
Note that if the braces are positioned in ends of the text (in a combobox item) the braces are somehow messed up.
Is this a QComboBox bug?
Searched the forum for a similar problem but found nothing.
#include <QComboBox>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QComboBox cb;
cb.setLayoutDirection( Qt::RightToLeft );
cb.addItem( "Abc" );
cb.addItem( "Abc (Abc)" );
cb.addItem( "(Abc)" );
cb.addItem( "(Abc) Abc" );
cb.addItem( "()" );
cb.addItem( "a (a) a" );
cb.show();
return a.exec();
}
Create an empty Qt Gui application project and run the code above.
Note that if the braces are positioned in ends of the text (in a combobox item) the braces are somehow messed up.
Is this a QComboBox bug?
Searched the forum for a similar problem but found nothing.