Results 1 to 11 of 11

Thread: Very strange behavior of QWidget in Qt Designer

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2007
    Location
    Ukraine, Odessa
    Posts
    140
    Thanks
    15
    Thanked 11 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Very strange behavior of QWidget in Qt Designer

    Hi. I was waiting for a reply too long so I didn't check this thread

    I'm using my custom widget as a plug-in. I thought that is obvious
    Last edited by THRESHE; 12th August 2008 at 16:10.
    C++ & AMD forever

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Very strange behavior of QWidget in Qt Designer

    Well, after looking at the screenshot it's not so clear which is what. I guess QFilmOnSlider is the custom widget provided by a plugin. If it's not looking correct in the screenshot, how should it look like? Remember that we don't really know what you're implementing. Does the custom widget work properly in a layout? I mean, if you don't use Qt Designer but place the widget into a simple layout directly in code.
    J-P Nurmi

  3. #3
    Join Date
    Mar 2007
    Location
    Ukraine, Odessa
    Posts
    140
    Thanks
    15
    Thanked 11 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Very strange behavior of QWidget in Qt Designer

    Quote Originally Posted by jpn View Post
    Well, after looking at the screenshot it's not so clear which is what.
    My bad
    Here it is.
    Quote Originally Posted by jpn View Post
    Does the custom widget work properly in a layout? I mean, if you don't use Qt Designer but place the widget into a simple layout directly in code.
    Honestly I didn't try to do this outside the Designer
    Attached Images Attached Images
    C++ & AMD forever

  4. #4
    Join Date
    Mar 2007
    Location
    Ukraine, Odessa
    Posts
    140
    Thanks
    15
    Thanked 11 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Very strange behavior of QWidget in Qt Designer

    Where are you jpn ?
    C++ & AMD forever

  5. #5
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Very strange behavior of QWidget in Qt Designer

    Honestly, I don't know what should I say, or what do you expect... Personally I would first assure that my custom widget works in layouts before even trying to integrate it to Qt Designer.
    J-P Nurmi

  6. #6
    Join Date
    Mar 2007
    Location
    Ukraine, Odessa
    Posts
    140
    Thanks
    15
    Thanked 11 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Very strange behavior of QWidget in Qt Designer

    Quote Originally Posted by jpn View Post
    Personally I would first assure that my custom widget works in layouts before even trying to integrate it to Qt Designer.
    How can I do that?
    C++ & AMD forever

  7. #7
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Very strange behavior of QWidget in Qt Designer

    Create a test app. Install a layout on the window and add different widgets to the layout (including your custom widgets) and check how it behaves when you resize the window.
    J-P Nurmi

  8. #8
    Join Date
    Mar 2007
    Location
    Ukraine, Odessa
    Posts
    140
    Thanks
    15
    Thanked 11 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Very strange behavior of QWidget in Qt Designer

    Damn I forgot when I place a simple plain widget to the layout it behaves the same
    Attached Images Attached Images
    C++ & AMD forever

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.