tag:blogger.com,1999:blog-308361232795615929.post2287759803614230545..comments2023-12-20T22:32:19.162+02:00Comments on Just 3adly: [Qt] Custom QListView delegate with word wrapUnknownnoreply@blogger.comBlogger10125tag:blogger.com,1999:blog-308361232795615929.post-53902741261859820322018-05-24T09:09:14.333+02:002018-05-24T09:09:14.333+02:00Good job. ThanksGood job. ThanksMolygonhttps://www.blogger.com/profile/02794911103427893708noreply@blogger.comtag:blogger.com,1999:blog-308361232795615929.post-22513780878168884862017-07-25T10:50:09.363+02:002017-07-25T10:50:09.363+02:00Thanks for the code! One note: You should probably...Thanks for the code! One note: You should probably also be using if your text can be higher than the height of the viewport: `setVerticalScrollMode(QtGui.QAbstractItemView.ScrollPerPixel)` Otherwise you won't be able to view certain portions of the text.Thomashttp://coldfix.denoreply@blogger.comtag:blogger.com,1999:blog-308361232795615929.post-49076641898785939712015-12-01T13:53:30.900+02:002015-12-01T13:53:30.900+02:00I'm glad I could help. Thank you for your comm...I'm glad I could help. Thank you for your comment.Mahmoud Adly Ezzathttps://www.blogger.com/profile/18301014750462402265noreply@blogger.comtag:blogger.com,1999:blog-308361232795615929.post-22807160552732003122015-10-29T21:25:53.107+02:002015-10-29T21:25:53.107+02:00Thanks for code sharing, it is very useful to me.Thanks for code sharing, it is very useful to me.ascohttps://www.blogger.com/profile/16535202342825108588noreply@blogger.comtag:blogger.com,1999:blog-308361232795615929.post-11779808097700120452013-12-17T17:40:58.724+02:002013-12-17T17:40:58.724+02:00Yes it can. It happened with me while testing my c...Yes it can. It happened with me while testing my code. Maybe you can check your listview properties for any changed values and reset them to defaults for testing.<br />I can't remember the property that caused my problem, but I think it was a property for word wrap.Mahmoud Adly Ezzathttps://www.blogger.com/profile/18301014750462402265noreply@blogger.comtag:blogger.com,1999:blog-308361232795615929.post-18008506940688576772013-12-17T17:15:30.575+02:002013-12-17T17:15:30.575+02:00Hi buddy, I have a question regarding your post.
...Hi buddy, I have a question regarding your post.<br /><br />I follow the path you are suggesting here but I'm unable to wrap the content. it still consumes (and even exceeds) the rect.width(). Can it be related with a listview property?Zeki Gülserhttps://www.blogger.com/profile/11532896200821887507noreply@blogger.comtag:blogger.com,1999:blog-308361232795615929.post-21846396379192370112013-10-04T17:09:22.693+02:002013-10-04T17:09:22.693+02:00Thanks!Thanks!Fathony Teguh Irawanhttps://www.blogger.com/profile/17587811110614225066noreply@blogger.comtag:blogger.com,1999:blog-308361232795615929.post-74994284722723993462013-10-02T19:50:36.437+02:002013-10-02T19:50:36.437+02:00Hi brother,
I was reviewing my code to discover I ...Hi brother,<br />I was reviewing my code to discover I was doing it in one line, like:<br />model->appendRow(item);<br /><br />So, depending on your application, you just create whatever QStandardItem you want (and maybe save some data in database) then just add the item with that single line.<br /><br />In my case: I used to call a controller that manages saving my new item to the database then the controller emits a signal with the saved item and I handle it in my view like:<br />connect(EntryController::getInstance(), SIGNAL(entryCreated(QStandardItem*)),<br /> SLOT(entryCreated(QStandardItem*)));<br /><br />and in the slot I add the item to the model.<br />Mahmoud Adly Ezzathttps://www.blogger.com/profile/18301014750462402265noreply@blogger.comtag:blogger.com,1999:blog-308361232795615929.post-31911832475932858772013-10-02T12:21:33.487+02:002013-10-02T12:21:33.487+02:00Sure, it is a small piece of code. I can post it t...Sure, it is a small piece of code. I can post it today or tomorrow.Mahmoud Adly Ezzathttps://www.blogger.com/profile/18301014750462402265noreply@blogger.comtag:blogger.com,1999:blog-308361232795615929.post-44711143255052818082013-10-02T12:18:11.732+02:002013-10-02T12:18:11.732+02:00Hi,
Thank you for the tutorial. Can you give tutor...Hi,<br />Thank you for the tutorial. Can you give tutorial to insert new row to the ListView by push button? <br />ThanksFathony Teguh Irawanhttps://www.blogger.com/profile/17587811110614225066noreply@blogger.com