Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

Qt Designer Custom Widget on OS X

$
0
0
I’ve been banging my head over this for a week now. I’m new to Qt so I’m sure I’ve missed something. I’m designing my app and would like to use a custom widget since the stock ones don’t display the way I want and I’d like to see the widget in designer. I’d rather not use promotion to make this work. I’ve tried a downloaded custom widget and the analog clock custom widget. Both compile and install just fine. Because of how the Qt Creator is done for Mac, the new plugin must be copied to the package contents of Qt Creator.app (inside the Plugins/designer folder). But when ever I do this and reopen designer, it crashes. A snippet of the crash report is: Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0   libsystem_kernel.dylib         0x00007fff99246866 __pthread_kill + 10 1   libsystem_pthread.dylib        0x00007fff8f0f235c pthread_kill + 92 2   libsystem_c.dylib              0x00007fff962eab1a abort + 125 3   QtCore                         0x000000011682b019 qt_message_fatal(QtMsgType, QMessageLogContext const&, QString const&) + 9 4   QtCore                         0x000000011682b651 QMessageLogger::fatal(char const*, ...) const + 161 5   QtWidgets                      0x0000000115d7fdfc QWidgetPrivate::QWidgetPrivate(int) + 604 6   QtWidgets                      0x0000000115d80bde QWidget::QWidget(QWidget*, QFlags<Qt::WindowType>) + 46 7   libcustomwidgetplugin.dylib    0x000000010289df27 AnalogClock::AnalogClock(QWidget*) + 23 8   libcustomwidgetplugin.dylib    0x000000010289e5d2 non-virtual thunk to AnalogClockPlugin::createWidget(QWidget*) + 34 9   QtDesigner                     0x000000010c610d3e qdesigner_internal::WidgetFactory::createCustomWidget(QString const&, QWidget*, bool*) const + 190 10  QtDesigner                     0x000000010c61145b qdesigner_internal::WidgetFactory::createWidget(QString const&, QWidget*) const + 91 Unfortunately this crash report means nothing to me. Hopefully I’ve included the relevant portion. (also found it funny that the demo files of the analog clock widget plugin was missing the json file that was clearly linked in the project) I’m using the DMG package of Qt. As far as I can tell both Qt and the custom widgets are both compiled with Clang 64 (but I honestly can’t tell for Qt). I have XCode installed. Considering the instruction in the documentation seem relatively simple, I’m assuming there is something specific that must be done on the OS X platform. If I need to compile a version of Qt for my system, I’d love a proper step by step set of instructions. I found one set of instructions and after compiling (qt-everywhere-opensource-src-5.2.1.tar.gz) I only ended up with Qt Designer not the whole Qt Creator package. I also tried to build the project file from qt-creator-opensource-src-3.0.1.tar.gz using the DMG version of Qt and got build errors.

Viewing all articles
Browse latest Browse all 2113

Trending Articles