Results 1 to 9 of 9

Thread: QWizard and banner pixmap

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 418 Times in 411 Posts

    Default Re: QWizard and banner pixmap

    Could you just mention which part of doc I have to read
    All of it, its not THAT much!
    And you might find examples and ideas and features you wouldn't know about if you don't read, that might help you to better design your code, and better utilize QWizard to your needs.
    my question is just to know how to resize the wizard when you set the bannerPixmap
    The wizard should allow you a resize of the page - have a look at the docs what the banner pixmap is.
    Are you sure you mean the banner pixmap?

    And again, you can make custom pages, to look any way you want them too, and you can use those in your wizard, instead of the standard ones.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  2. #2
    Join Date
    Jul 2006
    Posts
    37
    Qt products
    Qt3 Qt4
    Platforms
    Windows
    Thanks
    6

    Default Re: QWizard and banner pixmap

    And you might find examples and ideas and features you wouldn't know about if you don't read, that might help you to better design your code, and better utilize QWizard to your needs.
    Don't worry, I 've read everything since a long time ; and tested all examples that Trolltech provides

    If I made a post, that's mean I have no explicit solution. I don't want to disturb anybody if I can find the solution myself.

    Ok, take the example "class Wizard" in example, in dialogs

    try to launch it and try to resize the "ClassInfoPage": it's not possible ...

    comment the
    Qt Code:
    1. setPixmap(QWizard::BannerPixmap, QPixmap(":/images/banner.png"));
    To copy to clipboard, switch view to plain text mode 

    and you will see that is resizable...

    Now if there is someting I've missed, tell me, and I will code for that
    Thanks

  3. #3
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 418 Times in 411 Posts

    Default Re: QWizard and banner pixmap

    Don't worry, I 've read everything since a long time ; and tested all examples that Trolltech provides
    You could just said "yes I did" when I first asked.
    If I made a post, that's mean I have no explicit solution. I don't want to disturb anybody if I can find the solution myself.
    Well, that is very good.
    Unfortunately not that many here do that, so I wanted to make sure you did.
    Ok, take the example "class Wizard" in example
    At the moment I just don't have the time to run it.
    But from what you said, it sounds like an issue with a layout (but I can't confirm it at the moment), that once an image is set, the layout gets "locked" due to the fixed size of the pixmap.
    So that could be one place to look.
    Another is try playing with the QWizard/page object size hint, and size policies.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  4. #4
    Join Date
    Jul 2006
    Posts
    37
    Qt products
    Qt3 Qt4
    Platforms
    Windows
    Thanks
    6

    Default Re: QWizard and banner pixmap

    I have just received this answer for the question asked last week from Trolltech :

    I am not sure why adding the banner locks the size, I can't see why it should. I have created a suggestion that this restriction be removed.

    I have created task 193369 for our development team.
    You can use this ID to track the status of this task online:

    http://www.trolltech.com/developer/task-tracker

    I also created a simple patch to qt that implements this change, you are welcome to use it if you find it useful.



    just to notify that the task 193369 doesn't exist for the moment

    that's all

    David
    Attached Files Attached Files

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.