Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] Custom widgets disappearing from design view after projects reopen.
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Custom widgets disappearing from design view after projects reopen.

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 2.4k Views 1 Watching
  • 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.
  • P Offline
    P Offline
    piograb
    wrote on last edited by
    #1

    Hi all,

    At the beginning I would like to say hello to everyone, this is my first post here.

    I am creating some library with several of custom widgets, everything goes fine until I closed and reopened my *.ui file. After file reopened (I mean close in editor and open again) on "design" view in qt creator I cannot see my widgets (there are blank) but I can move them and change their size. Most interesting thing is that after compile and run program widgets are visible.

    This picture presents how it looks before closing:
    !http://piotr.grabalski.gre.pl/qt/qt_issue_01.jpg(issue 01)!

    This picture presents how it looks after reopening the UI file:
    !http://piotr.grabalski.gre.pl/qt/qt_issue_02.jpg(issue 02)!

    Do you have maybe any idea to fix that?

    Thanks in advance!

    regards,
    Peter

    1 Reply Last reply
    0
    • P Offline
      P Offline
      piograb
      wrote on last edited by
      #2

      Okay, solved, thanks!

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tobias.hunger
        wrote on last edited by
        #3

        How did you solve this issue? Can you mark your thread as solved, please?

        1 Reply Last reply
        0
        • P Offline
          P Offline
          piograb
          wrote on last edited by
          #4

          My mistake in subclass implementing QDesignerCustomWidgetInterface,

          method:
          @QString name() const;@
          was wrongly implemented, it should return a name of widget class.
          Designer put some errors in terminal (something about widget class name mismath),

          after all everything works,

          regards,
          piograb

          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