{"id":202,"date":"2007-05-21T21:29:45","date_gmt":"2007-05-21T19:29:45","guid":{"rendered":"http:\/\/mattiesworld.gotdns.org\/weblog\/2007\/05\/21\/qt-designer-bug\/"},"modified":"2007-05-21T21:29:45","modified_gmt":"2007-05-21T19:29:45","slug":"qt-designer-bug","status":"publish","type":"post","link":"https:\/\/mattiesworld.gotdns.org\/weblog\/2007\/05\/21\/qt-designer-bug\/","title":{"rendered":"Qt designer bug"},"content":{"rendered":"<p>Step 1: Start Qt Designer. Open your form. Qt designer hangs. Kill that stuff.<br \/>\nStep 2: Restart, but open another form. Qt Designer works just fine.<br \/>\nQuestion your sanity and repeat step 1 to see whether the hanging was just a glitch in the Matrix. Be stumped to see that it hangs again.<br \/>\n(Possible extension: create your favorite permutational combination of step 1 &#038; 2 and repeat into infinity \ud83d\ude09 )<\/p>\n<p>If this scenario seems familiar to you, then certainly read on&#8230;<\/p>\n<p>Remember my little QtWorkbench issue I <a href=\"https:\/\/mattiesworld.gotdns.org\/weblog\/2007\/05\/18\/ide-wars-the-battle-for-qt\/\">blogged about<\/a>? Well, it seemed, the story got a tail too (that&#8217;s why I had to blog that first before I could say this =)).<\/p>\n<p>During my struggle for correct compilation, I had modified the windowModality flag of my QMainWindow to Qt::Modal, in a desperate attempt to guide my app into the &#8220;Right Thread&#8221;. \ud83d\ude09<br \/>\nIf I had modified that flag at any other point, I would have noticed the problem immediately, but being preoccupied with my QFtp thread problem at that time, I never went back to Designer and didn&#8217;t notice..<br \/>\nI know, it&#8217;s a stupid of me, but I still think it&#8217;s kind of a bug in Qt Designer. If you shouldn&#8217;t change the window modality of a main window, then they shouldn&#8217;t let you. \ud83d\ude42 Moreover, you can&#8217;t change it back since as soon as you open your form, the form gets simulated in real-time and the dead-lock occurs. Or maybe even eventloop hijacking, sounds more l33t. \ud83d\ude1b<br \/>\nLuckily, the gui is stored in plain XML, so you can just delete that section and you&#8217;re all set.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Step 1: Start Qt Designer. Open your form. Qt designer hangs. Kill that stuff. Step 2: Restart, but open another form. Qt Designer works just fine. Question your sanity and repeat step 1 to see whether the hanging was just a glitch in the Matrix. Be stumped to see that it hangs again. (Possible extension: &hellip; <a href=\"https:\/\/mattiesworld.gotdns.org\/weblog\/2007\/05\/21\/qt-designer-bug\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Qt designer bug<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-202","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/posts\/202","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/comments?post=202"}],"version-history":[{"count":0,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/posts\/202\/revisions"}],"wp:attachment":[{"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/media?parent=202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/categories?post=202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/tags?post=202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}