Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Mac OS X: How do you know a Drawer widget is open?

    General and Desktop
    2
    4
    3106
    Loading More Posts
    • 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.
    • R
      ronM71 last edited by

      It's more tricky than it seems.

      You can manually "shut" a drawer window by sliding it back in. When you do that it's not visible to the user anymore, but it's still "isVisible()" according to the API. How do I know then how to distinguish between an open or "closed" drawer window?

      1 Reply Last reply Reply Quote 0
      • G
        goetz last edited by

        From a quick research, I would say that's not possible at all.

        http://www.catb.org/~esr/faqs/smart-questions.html

        1 Reply Last reply Reply Quote 0
        • R
          ronM71 last edited by

          One of the most popular mac text editors, TextMate has a drawer window interface and a menu option to "open" or "hide" the drawer. When open, if I manually resize the drawer past the disappearing point, the menu option will turn to "show". That tells me there is a native OSX method (or hack) to check for this.

          Could it be that something simple exists in Cocoa for this, that just hasn't been abstracted by Qt?

          1 Reply Last reply Reply Quote 0
          • G
            goetz last edited by

            This could be the case, yes. On the other hand, I'm not sure, if Qt creates the very same cocoa objects as native OS X applications.

            http://www.catb.org/~esr/faqs/smart-questions.html

            1 Reply Last reply Reply Quote 0
            • First post
              Last post