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. Qt Mac error
QtWS25 Last Chance

Qt Mac error

Scheduled Pinned Locked Moved General and Desktop
19 Posts 8 Posters 8.0k 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.
  • U Offline
    U Offline
    uranusjr
    wrote on last edited by
    #8

    qapplication_mac.mm should be in the source of Qt. By changing the lines, you need to download the source code of Qt, modify the file mentioned above, and compile/install the Qt libraries by yourself. Not exactly an easy thing to do if you don't have some experience.

    I don't have a VM running Mac OS X, so there's little else I can provide on this one, but the workaround mentioned by Alessandro Wilner in the bug report might be worth a try.

    Also I would recommend you try to reveal this problem to VMWare, and let them fix this problem.

    The "leaking" problem should have been fixed after 4.6.2, so if it's coming back again, you can just "submit another bug report on this issue":https://bugreports.qt.nokia.com.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      szuzsq
      wrote on last edited by
      #9

      [quote author="paladin_knight" date="1316019039"]I never know that you can develop Apple Application using Qt with Cocoa Framework. How to do that?[/quote]

      @
      #qt_cocoa.pro****
      QT += core gui

      TARGET = qt_cocoa
      TEMPLATE = app

      SOURCES += main.cpp
      dialog.mm

      HEADERS += dialog.h

      LIBS += -framework Cocoa
      @

      @
      //dialog.h****
      #ifndef DIALOG_H
      #define DIALOG_H

      #include <QtGui/QDialog>

      class Dialog : public QDialog
      {
      Q_OBJECT

      public:
      Dialog(QWidget *parent = 0);
      ~Dialog();
      };

      #endif // DIALOG_H
      @

      @
      //dialog.mm*****
      #include "dialog.h"

      #import <Cocoa/Cocoa.h>

      Dialog::Dialog(QWidget *parent)
      : QDialog(parent)
      {
      NSLog(@"aaaaa");
      NSRunAlertPanel(@"Fido", @"Rover is %d", @"Rex", @"Spot", nil, 8);
      }

      Dialog::~Dialog()
      {

      }
      @

      @
      //main.cpp**
      #include <QtGui/QApplication>
      #include "dialog.h"

      int main(int argc, char *argv[])
      {
      QApplication a(argc, argv);
      Dialog w;
      w.show();

      return a.exec&#40;&#41;;
      

      }
      @

      1 Reply Last reply
      0
      • U Offline
        U Offline
        uranusjr
        wrote on last edited by
        #10

        @szuzsq You win! LOL

        I actually tried to use Qt Widgets in an NSApplication after reading @paladin_knight's post. But I couldn't get it work after like 30 minutes, and I gave up. =p Didn't thought about doing it the other way around like you did.

        1 Reply Last reply
        0
        • AlicemirrorA Offline
          AlicemirrorA Offline
          Alicemirror
          wrote on last edited by
          #11

          Yep! Same question: Qt under cocoa? And QML under IOS ??? Is there a reliable way without spend days to setup a decent dev env?

          Enrico Miglino (aka Alicemirror)
          Balearic Dynamics
          Islas Baleares, Ibiza (Spain)
          www.balearicdynamics.com

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goetz
            wrote on last edited by
            #12

            [quote author="Alicemirror" date="1316595981"]And QML under IOS ???[/quote]

            QML is Qt, so this has been discussed "here":http://developer.qt.nokia.com/forums/viewthread/7271 and "here":http://developer.qt.nokia.com/forums/viewthread/4401

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

            1 Reply Last reply
            0
            • AlicemirrorA Offline
              AlicemirrorA Offline
              Alicemirror
              wrote on last edited by
              #13

              @Volker: in theory it is true, but as I have read (and not experimented yet) I know that the Qt porting for Android is Qt but doesn't include the QML declarative while under IOS I had notice of some portings of QML UI and not Qt at all.

              Enrico Miglino (aka Alicemirror)
              Balearic Dynamics
              Islas Baleares, Ibiza (Spain)
              www.balearicdynamics.com

              1 Reply Last reply
              0
              • G Offline
                G Offline
                goetz
                wrote on last edited by
                #14

                That discussion should be left to a new thread then, as I can see no relation to the NSAutoreleaseNoPool problem?!?

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

                1 Reply Last reply
                0
                • AlicemirrorA Offline
                  AlicemirrorA Offline
                  Alicemirror
                  wrote on last edited by
                  #15

                  True, I am not Moderator of this forum, only Italian / Spanish and Mobile and embedded. If you can, please move it. Thanks.

                  Enrico Miglino (aka Alicemirror)
                  Balearic Dynamics
                  Islas Baleares, Ibiza (Spain)
                  www.balearicdynamics.com

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    goetz
                    wrote on last edited by
                    #16

                    I'm reluctant to split off an answer that is at least partially related to the original topic, so better just start a new thread.

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

                    1 Reply Last reply
                    0
                    • AlicemirrorA Offline
                      AlicemirrorA Offline
                      Alicemirror
                      wrote on last edited by
                      #17

                      If is possible to duplicate some posts, else if you want to split I think that the best point is after the answer of @uranusjr...

                      Enrico Miglino (aka Alicemirror)
                      Balearic Dynamics
                      Islas Baleares, Ibiza (Spain)
                      www.balearicdynamics.com

                      1 Reply Last reply
                      0
                      • P Offline
                        P Offline
                        planarian
                        wrote on last edited by
                        #18

                        I'm hoping someone can verify that this "suggested code change":https://bugreports.qt-project.org/browse/QTBUG-4447 does in fact fix the "tablet device is unknown" error; I'd prefer to be sure before I go to the hassle of recompiling the libraries. Alternatively is there some way to implement Alessandro Wilner's (same page, under "comments") USB mouse workaround in VirtualBox, as opposed to VMware?

                        1 Reply Last reply
                        0
                        • D Offline
                          D Offline
                          David99
                          Banned
                          wrote on last edited by
                          #19
                          This post is deleted!
                          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