Skip to content
  • 0 Votes
    10 Posts
    4k Views
    G

    Well, I found the problem.
    The menu command for Designer has this syntax:

    /usr/bin/qtchooser -run-tool=assistant -qt=qt5

    I replace it with the path where is located designer:

    /home/glafauci/Programmi/Qt/5.10.0/gcc_64/bin/designer

    Now it work fine.

    Thanks to all.

  • Custom Plugins

    Solved General and Desktop
    7
    0 Votes
    7 Posts
    2k Views
    Sh1gsS

    Ahh, I see, that makes sense. Thank you so much for your help!

    Also, I've found that adding an environment variable:

    QT_QPA_PLATFORM_PLUGIN_PATH : <path to qt platforms/qwindows.dll>

    This gets rid of the error. It is a lot easier than having to add the .dll in each application project.

    Again, thank you so much for your help!

  • 0 Votes
    4 Posts
    2k Views
    imyrvoldI

    @musimbate

    I just followed the documentation here: http://doc.qt.io/qt-5/designer-creating-custom-widgets.html where it says to create a .pri file.

    But I tried your suggestion to add the analogclock.h and .cpp to the headers and source in the .pro file, and now I get this compiler output:

    14:22:19: Starting: "C:\Qt\5.3\msvc2013\bin\qmake.exe" C:\Users\MyrvoldI\Documents\Qt\test7\test7.pro -r -spec win32-msvc2013 "CONFIG+=debug" 14:22:19: The process "C:\Qt\5.3\msvc2013\bin\qmake.exe" exited normally. 14:22:19: Starting: "C:\Qt\Tools\QtCreator\bin\jom.exe" C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Debug C:\Qt\5.3\msvc2013\bin\uic.exe ..\test7\mainwindow.ui -o ui_mainwindow.h cl -c -nologo -Zm200 -Zc:wchar_t -FS -Zi -MDd -GR -W3 -w34100 -w34189 -EHsc /Fddebug\test7.pdb -DUNICODE -DWIN32 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -I"C:\Qt\5.3\msvc2013\include" -I"C:\Qt\5.3\msvc2013\include\QtWidgets" -I"C:\Qt\5.3\msvc2013\include\QtGui" -I"C:\Qt\5.3\msvc2013\include\QtANGLE" -I"C:\Qt\5.3\msvc2013\include\QtCore" -I"debug" -I"." -I"." -I"C:\Qt\5.3\msvc2013\mkspecs\win32-msvc2013" -Fodebug\ @C:\Users\MyrvoldI\AppData\Local\Temp\main.obj.18096.15.jom cl -c -nologo -Zm200 -Zc:wchar_t -FS -Zi -MDd -GR -W3 -w34100 -w34189 -EHsc /Fddebug\test7.pdb -DUNICODE -DWIN32 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -I"C:\Qt\5.3\msvc2013\include" -I"C:\Qt\5.3\msvc2013\include\QtWidgets" -I"C:\Qt\5.3\msvc2013\include\QtGui" -I"C:\Qt\5.3\msvc2013\include\QtANGLE" -I"C:\Qt\5.3\msvc2013\include\QtCore" -I"debug" -I"." -I"." -I"C:\Qt\5.3\msvc2013\mkspecs\win32-msvc2013" -Fodebug\ @C:\Users\MyrvoldI\AppData\Local\Temp\analogclock.obj.18096.31.jom C:\Qt\5.3\msvc2013\bin\moc.exe -DUNICODE -DWIN32 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -D_MSC_VER=1800 -D_WIN32 -IC:/Qt/5.3/msvc2013/mkspecs/win32-msvc2013 -IC:/Users/MyrvoldI/Documents/Qt/test7 -IC:/Qt/5.3/msvc2013/include -IC:/Qt/5.3/msvc2013/include/QtWidgets -IC:/Qt/5.3/msvc2013/include/QtGui -IC:/Qt/5.3/msvc2013/include/QtANGLE -IC:/Qt/5.3/msvc2013/include/QtCore -I. ..\test7\mainwindow.h -o debug\moc_mainwindow.cpp C:\Qt\5.3\msvc2013\bin\moc.exe -DUNICODE -DWIN32 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -D_MSC_VER=1800 -D_WIN32 -IC:/Qt/5.3/msvc2013/mkspecs/win32-msvc2013 -IC:/Users/MyrvoldI/Documents/Qt/test7 -IC:/Qt/5.3/msvc2013/include -IC:/Qt/5.3/msvc2013/include/QtWidgets -IC:/Qt/5.3/msvc2013/include/QtGui -IC:/Qt/5.3/msvc2013/include/QtANGLE -IC:/Qt/5.3/msvc2013/include/QtCore -I. ..\test7\analogclock.h -o debug\moc_analogclock.cpp analogclock.cpp main.cpp cl -c -nologo -Zm200 -Zc:wchar_t -FS -Zi -MDd -GR -W3 -w34100 -w34189 -EHsc /Fddebug\test7.pdb -DUNICODE -DWIN32 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -I"C:\Qt\5.3\msvc2013\include" -I"C:\Qt\5.3\msvc2013\include\QtWidgets" -I"C:\Qt\5.3\msvc2013\include\QtGui" -I"C:\Qt\5.3\msvc2013\include\QtANGLE" -I"C:\Qt\5.3\msvc2013\include\QtCore" -I"debug" -I"." -I"." -I"C:\Qt\5.3\msvc2013\mkspecs\win32-msvc2013" -Fodebug\ @C:\Users\MyrvoldI\AppData\Local\Temp\mainwindow.obj.18096.47.jom mainwindow.cpp cl -c -nologo -Zm200 -Zc:wchar_t -FS -Zi -MDd -GR -W3 -w34100 -w34189 -EHsc /Fddebug\test7.pdb -DUNICODE -DWIN32 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -I"C:\Qt\5.3\msvc2013\include" -I"C:\Qt\5.3\msvc2013\include\QtWidgets" -I"C:\Qt\5.3\msvc2013\include\QtGui" -I"C:\Qt\5.3\msvc2013\include\QtANGLE" -I"C:\Qt\5.3\msvc2013\include\QtCore" -I"debug" -I"." -I"." -I"C:\Qt\5.3\msvc2013\mkspecs\win32-msvc2013" -Fodebug\ @C:\Users\MyrvoldI\AppData\Local\Temp\moc_analogclock.obj.18096.171.jom moc_analogclock.cpp debug\moc_analogclock.cpp(55) : warning C4273: 'AnalogClock::qt_static_metacall' : inconsistent dll linkage c:\users\myrvoldi\documents\qt\build-test7-desktop_qt_5_3_msvc2013_32bit-debug\debug\../../test7/analogclock.h(9) : see previous definition of 'qt_static_metacall' debug\moc_analogclock.cpp(62) : warning C4273: 'staticMetaObject' : inconsistent dll linkage c:\users\myrvoldi\documents\qt\build-test7-desktop_qt_5_3_msvc2013_32bit-debug\debug\../../test7/analogclock.h(9) : see previous definition of 'public: static QMetaObject const AnalogClock::staticMetaObject' debug\moc_analogclock.cpp(62) : error C2491: 'AnalogClock::staticMetaObject' : definition of dllimport static data member not allowed debug\moc_analogclock.cpp(69) : warning C4273: 'AnalogClock::metaObject' : inconsistent dll linkage c:\users\myrvoldi\documents\qt\build-test7-desktop_qt_5_3_msvc2013_32bit-debug\debug\../../test7/analogclock.h(9) : see previous definition of 'metaObject' debug\moc_analogclock.cpp(74) : warning C4273: 'AnalogClock::qt_metacast' : inconsistent dll linkage c:\users\myrvoldi\documents\qt\build-test7-desktop_qt_5_3_msvc2013_32bit-debug\debug\../../test7/analogclock.h(9) : see previous definition of 'qt_metacast' debug\moc_analogclock.cpp(82) : warning C4273: 'AnalogClock::qt_metacall' : inconsistent dll linkage c:\users\myrvoldi\documents\qt\build-test7-desktop_qt_5_3_msvc2013_32bit-debug\debug\../../test7/analogclock.h(9) : see previous definition of 'qt_metacall' jom: C:\Users\MyrvoldI\Documents\Qt\build-test7-Desktop_Qt_5_3_MSVC2013_32bit-Debug\Makefile.Debug [debug\moc_analogclock.obj] Error 2 cl -c -nologo -Zm200 -Zc:wchar_t -FS -Zi -MDd -GR -W3 -w34100 -w34189 -EHsc /Fddebug\test7.pdb -DUNICODE -DWIN32 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -I"C:\Qt\5.3\msvc2013\include" -I"C:\Qt\5.3\msvc2013\include\QtWidgets" -I"C:\Qt\5.3\msvc2013\include\QtGui" -I"C:\Qt\5.3\msvc2013\include\QtANGLE" -I"C:\Qt\5.3\msvc2013\include\QtCore" -I"debug" -I"." -I"." -I"C:\Qt\5.3\msvc2013\mkspecs\win32-msvc2013" -Fodebug\ @C:\Users\MyrvoldI\AppData\Local\Temp\moc_mainwindow.obj.18096.171.jom moc_mainwindow.cpp ..\test7\analogclock.cpp(5) : warning C4273: 'AnalogClock::AnalogClock' : inconsistent dll linkage c:\users\myrvoldi\documents\qt\test7\analogclock.h(12) : see previous definition of '{ctor}' ..\test7\analogclock.cpp(17) : warning C4273: 'AnalogClock::paintEvent' : inconsistent dll linkage c:\users\myrvoldi\documents\qt\test7\analogclock.h(15) : see previous definition of 'paintEvent' jom: C:\Users\MyrvoldI\Documents\Qt\build-test7-Desktop_Qt_5_3_MSVC2013_32bit-Debug\Makefile [debug] Error 2 14:22:22: The process "C:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2. Error while building/deploying project test7 (kit: Desktop Qt 5.3 MSVC2013 32bit) When executing step "Make" 14:22:22: Elapsed time: 00:03.```
  • 0 Votes
    5 Posts
    1k Views
    p3c0P

    @themts Good find. Seems suitable for your requirement.