November 14, 2011

MrBabakishiyev MrBabakishiy..
Lab Rat
53 posts

Add border line to Qt GroupBox and Widget

 

Hello. I want to add border lines to GroupBox and Widget in Qt Creator IDE.
At NetBeans I can do it from IDE.
At Qt Creator also can I do it? Or have another way?
Sorry, for english.
Thanks for helps

 Signature 

Practice, practice and practice

4 replies

November 14, 2011

Andre Andre
Area 51 Engineer
6031 posts

QGroupBox already has a border line, unless you use some style that hides them. Instead of using QWidget, use a QFrame instead.

 Signature 

Looking for Qt developers to join our team @ i-Optics: https://qt-project.org/forums/viewthread/25393/

November 14, 2011

MrBabakishiyev MrBabakishiy..
Lab Rat
53 posts

Thanks , I used it, and QFrame is liked me. But I want to add line to QWidget or GroupBox.
I learned how to add border. But When I use border for one widget, it changes all components which they placed on this widget.
Thanks for helps

 Signature 

Practice, practice and practice

November 14, 2011

Andre Andre
Area 51 Engineer
6031 posts

I don’t understand your requirements. Why can’t you use QFrame instead of QWidget? It’s whole purpose is being a QWidget with a border. And what is wrong with QGroupBox as-is, as it already has a border?

Could you show us the code you are currently using?

 Signature 

Looking for Qt developers to join our team @ i-Optics: https://qt-project.org/forums/viewthread/25393/

November 14, 2011

MrBabakishiyev MrBabakishiy..
Lab Rat
53 posts

Thanks sir, I solved.

 Signature 

Practice, practice and practice

 
  ‹‹ Disable widget background fills before paint      Limit the number of visible items on QComboBox ››

You must log in to post a reply. Not a member yet? Register here!