diff --git a/src/FilterTableHeader.cpp b/src/FilterTableHeader.cpp index 09e46a47..0997733c 100644 --- a/src/FilterTableHeader.cpp +++ b/src/FilterTableHeader.cpp @@ -76,7 +76,10 @@ void FilterTableHeader::adjustPositions() { // Get the current widget, move it and resize it QWidget* w = filterWidgets.at(i); - w->move(sectionPosition(i) - offset(), w->sizeHint().height() + 2); // The two adds some extra space between the header label and the input widget + if (layoutDirection() == Qt::RightToLeft) + w->move(width() - (sectionPosition(i) + sectionSize(i) - offset()), w->sizeHint().height() + 2); // The two adds some extra space between the header label and the input widget + else + w->move(sectionPosition(i) - offset(), w->sizeHint().height() + 2); // The two adds some extra space between the header label and the input widget w->resize(sectionSize(i), w->sizeHint().height()); } }