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. Mac OS X: How do you know a Drawer widget is open?

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

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 3.4k Views
  • 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 Offline
    R Offline
    ronM71
    wrote on last edited by
    #1

    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
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      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
      0
      • R Offline
        R Offline
        ronM71
        wrote on last edited by
        #3

        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
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #4

          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
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved