1 Attachment(s)
Create own widget in a right way
I have a lame problem again. I would like to create my own widget class which look like this:
Attachment 13495
And i want to add to a QScrollArea. I tried it somwhow but dont work. i cant add the QLabels on QPushbutton to the most left and right side. When i create my own version and added to QScrollArea I just watched a small black button.. no expanding to my QScrollArea , but yeah i used setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred)... any idea guys?:(
Re: Create own widget in a right way
Without showing some code, it will be difficult to say what is wrong. Are you using a horizontal layout to manage the three widgets? Which widget do you want to expand? The one in the middle, all of them? Are they all push buttons? It looks like the one in the middle could be a QTextEdit?
A screenshot doesn't tell us much. Is that what you see? Is it what you want to see?