Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Designer inflexibility and assertiveness - criminal level
QtWS25 Last Chance

Qt Designer inflexibility and assertiveness - criminal level

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 2 Posters 1.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mystery Keeper
    wrote on last edited by
    #1

    I made a custom widget subclassing QScrollArea. In its constructor it initialized a persistent viewport widget and and accessed it via a pointer through its work. The form this widget is on is built from .ui file, so, naturally, I promoted QScrollArea. And my program started crashing. It took some time to understand the cause. Qt Designer forced a viewport widget creation even for my promoted widget. Even though my viewport widget was properly initialized in constructor, m_ui.setupUi() of the form created another widget and put it into viewport, destroying my own.

    And here comes the point. Viewport widget can not be deleted or have its type changed in Qt Designer. And fiddling with .ui file in text editor has shown that both can actually be done, and Qt Designer works just fine with such a tweaked file. I say Qt Designer needs to be improved to give user more power over child widgets.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      To discuss this kind of matter you should rather go on the interest mailing list. You'll find there Qt's developers/maintainers (this forum is more user oriented)

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mystery Keeper
        wrote on last edited by
        #3

        I have actually created an issue in JIRA.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You should share the link so if other are looking for something similar they may find it more easily

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved