c++ - Groupbox alignment of title in qt doesn`t work. Why? -


i created simple mainwindow form in qt 4.8.4 designer, in preview title placed in top left corner should be, when use form in simple program writen in eclipse qt plugin, title placed straight @ top top center not right. when use ui.groupbox->setalignment(qt::alignright); or left before show(), nothing happen title stays @ center. may cause this? program minimalistic , there group box , nothing else.

have tried setting style sheet this:

ui->groupbox->setstylesheet("qgroupbox::title {subcontrol-position: right;}"); 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -