سؤال

I have added QLineEdit but the Problem is that i am not able to align them properly in QMessageBox is there any way to align them automatically in a suitable manner ?

I have done it with these codes:

frame_No.setFixedSize(150, 20); 
frame_No.setAlignment(Qt::AlignHCenter);

(Frame_No is my lineedit )

هل كانت مفيدة؟

المحلول

QMessageBox with QLineEdit? Is a QInputDialog maybe what you are looking for?

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top