Results 1 to 7 of 7

Thread: How to change initial visibilty in QTCreator?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to change initial visibilty in QTCreator?

    Quote Originally Posted by t_s View Post
    Perhaps there was something confusing in my initial post?
    Yes there was. Don't abuse the word "Creator" because it leads to confusion. You should have asked about initial visibility of the form in your program that you create in Creator (or in fact Designer). Then I would have said that widgets are hidden by default and you should show() them in your code. Then you would have asked how to do that and then I would point you to the link I did point you to. So cutting to the chase - your question was answered by the link I gave you.

    As for the other question, I'm yet to read through all that (tthe link)
    Then read the link and the answer(s) to your question(s) will become obvious.

    . It's just that I'm used to utilizing IDE:s to generate a base code I then can edit to fit my purpose. I'm sure there are some smart concepts behind the QT approach, but a little frustrating when I get stuck as in my case above.
    You're used to stupid IDEs that don't give a damn about inheritance. Qt does so you do all that you say by subclassing and not editing auto-generated code.

    And by the way - learning some things first before giving opinions about them is a really good idea. You got stuck because you started coding before learning and expected something to work exactly as you're used to with some other mechanism and finding that things are a bit different you assumed that everything must be different. Just as you didn't notice that the code generated from the .ui file is not a widget so calling show(), hide() or setVisible() on it wouldn't make any sense.
    Last edited by wysota; 20th May 2009 at 22:35.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. The following user says thank you to wysota for this useful post:

    t_s (22nd May 2009)

Tags for this Thread

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.