Skip to content
  • 0 Votes
    3 Posts
    1k Views
    mrjjM

    Hi
    The qemf seems able to only rendering of EMF not generating it.

    What is the data you want to put in the emf file ?

    Qt has http://doc.qt.io/qt-5/qpicture.html#details
    that works like WMF but its not same (file) format at all.

    However, its pretty simle to generate WMF/EMF from windows API.
    (CreateEnhMetaFile)

  • 0 Votes
    8 Posts
    3k Views
    VRoninV

    I agree you need to use a state machine for that case. http://doc.qt.io/qt-5/qstatemachine.html probably helps putting down the skeleton already

  • 0 Votes
    5 Posts
    12k Views
    M

    @eDeviser said in Customizing QMainWindow by style sheet:

    Yes, this helps!

    I see the QMainWindow holds a QWidget which is set as cetralWidget. So It would be necessary to set the QMainWindow as centralWidget or to apply my css for the QWidget.

    0_1501135343432_3169fb05-5a7c-4700-9cd0-ae074842feab-image.png

    Thank you for this hint.

    You have to apply your css in your qwidget !

    Your css should be :

    centralWidget {
    background: yellow;
    width: 10px; /* when vertical /
    height: 10px; / when horizontal */
    }

    centralWidget:hover {
    background: red;
    }

  • 0 Votes
    6 Posts
    8k Views
    M

    @deleted184 said in Qt5.9 VNC Support:

    Hi guys!

    According to the changelog of Qt5.8, vnc is back. I'm currently on Qt5.9 and i was able to launch my application with vnc enable like this:

    ./myQt59app -platform vnc:size=272x480

    Via my VNC client everything works very well, however i have nothing displayed on the screen of my board :( . Do you have any idea on how to launch a qt5.9 application on a board and have a remote access via VNC ?

    I am using qt5.9 and i am able to start my qt application with vnc backend.However, when seeing from vncviewer or bnvc on android, i can only see a small part of my applicaiton( 1024x600 for my applicaiton , but on vnc client i can only see 1/4 part of the whole display).
    The following is my procedure:
    on my embedded linux server, run ./myQt59app -platform vnc:size=1024x600 in terminnal; on andriod ,using vnc viewer or bVNC to listen to ip address and port of my linux device. But both app can only see nearly 1/4 of the whole display.

    What is your procedure?Thanks!

  • 0 Votes
    12 Posts
    5k Views
    R

    @Konstantin-Tokarev @SGaist

    I found the cause of those error, it is due to fonts.css in html files.
    When I removed the link from <head>, the application was successfully run without crashed.

    Just wonder, how come its not working now in qt5.8 but just nice back then in qt5.5 ?

    BTW, thanks both for your help and idea :)

  • 0 Votes
    5 Posts
    2k Views
    R

    @Konstantin-Tokarev
    Ok. noted. I will start over and get back to you.
    For now, it considers solved.
    Thank you very much :)

  • 0 Votes
    2 Posts
    883 Views
    SGaistS

    Hi and welcome to devnet,

    What's dxftoqet3db.h ?
    Where does it come from ?
    Does it use an external .dll ?

  • 0 Votes
    2 Posts
    1k Views
    jsulmJ

    @rggarcia said in Qt 5.8 installation - MacOS Sierra:

    qtpcre_debug

    Looks like qtpcre_debug was not built. Did you have any errors while compiling? Do you have to build Qt by yourself?

  • VideoControl Issues

    Solved QML and Qt Quick
    9
    0 Votes
    9 Posts
    5k Views
    K

    I actually switched to QtAV for video output, and so far it's been working flawlessly under standard QT App setup.

    If I could ever get the QML/Quick setup to acknowledge it's been installed I'd test that end of things, but for now it's accomplishing exactly what I need.

    Thanks again for the assistance!.

  • 0 Votes
    6 Posts
    3k Views
    SGaistS

    Strange, i'd check if the Windows SDK is installed.

  • 0 Votes
    5 Posts
    3k Views
    someoneintheboxS

    Problem solved. It was bug in Inno setup, which corruped Qt5Multimedia.dll somehow.

  • 0 Votes
    4 Posts
    1k Views
    SGaistS

    Hi,

    Looks similar to QTBUG-59065 which is a duplicate of QTBUG-58259.

  • ICU 58.2 cross-compilation

    Solved Qt WebKit
    4
    0 Votes
    4 Posts
    3k Views
    S

    I got it to work by changing 2 things

    export CPPFLAGS="-Os"

    And by removing the prefix in the configure, and installing it twice ( one in the sysroot of the toolchain ) and the other in the filesystem for the target

    sh $ICU_SOURCE_DIR/source/configure --host=arm-cortex_a8-linux-gnueabi -with-cross-build=$ICU_HOST_DIR --prefix="" if ! make -j5 DESTDIR=$SYSROOT install; then echo -e "${RED}Error making ICU Target ( sysroot )!${NC}" exit 1 fi if ! make -j5 DESTDIR=$PREFIX install; then echo -e "${RED}Error Installing ICU Target ( filesystem )!${NC}" exit 1 fi
  • Build error Qt Declarative

    Unsolved Installation and Deployment
    5
    0 Votes
    5 Posts
    2k Views
    K

    i have KUBUNTU 16.04 64 bits.
    in wiki beginner use for compile this linaro 4.7 or in supported plasform 4.6.3 for qt5.6
    i don't understand, is not target os dependent?

    for 5.8 GCC 4.8.2...

    other tuto use the toolchain
    https://github.com/raspberrypi/tools

    why fixQualifiedLibraryPaths not work? prefer use sysroot-relativelinks.py

    what is the toolchain to use?

  • Ibase error

    Solved General and Desktop
    10
    0 Votes
    10 Posts
    2k Views
    SGaistS

    Great !

    In that case, please mark the thread as solved using the "Topic Tools" button so that other forum members may know a solution has been found :)

  • 0 Votes
    3 Posts
    1k Views
    Carlos DiazC

    Hola @J-Hilk , si ese era el problema, ahora compila y funciona como debería :), todavía me resta entender el static_cast.

    Saludos :)

  • 0 Votes
    9 Posts
    4k Views
    P

    I meet the same issue today. So i download the older version of Qt.

  • 0 Votes
    8 Posts
    4k Views
    C

    Build Qt qml plugin for iOS (static plugin)

    Plugin Pro file like flow:
    TEMPLATE = lib
    TARGET = iostestqmlplugin
    QT += qml quick
    CONFIG += qt plugin c++11 static
    uri = IosQmlPluginTest # module name
    QMAKE_MOC_OPTIONS += -Muri=$$uri # static plugin must use this

    2.qmldir file
    module IosQmlPluginTest
    plugin iostestqmlplugin
    typeinfo plugins.qmltypes #static plugin required
    classname IosqmlpluginPlugin # static plugin must set classname for plugin c++ class

    TimeLabel 1.0 qrc:/TimeLabel.qml # your self qml document

    3.qrc file must contains qmldir file, Qt default put qmldir in qrc file with prefix likes: “/qt-project.org/imports/your-plugin-modele-name”, You can special yourself prefix but must endwiths “your-plugin-module-name” and in main cpp need add addImportPath(eg: engine.addImportPath(“qrc:/your-self-prefix-not-contains-your-plugin-module-name”))

    4.put plugins.qmltypes, qmldir and plugin library files together into where Qt install dir’s sub fold name qml($$[QT_INSTALL_QML] Qt default serach path), maybe you can special yourself path in your app pro file by variable QMLPATHS(QMLPATHS += /your/plugin/path)

    Init the plugin resources(contains qmldir) at plugin c++ class construction function like:Q_INIT_RESOURCE(your-qrc-file-name);

    6.pulugins.qmltypes file it’s required. can gernerate by qmlplugindup tool.

    7.refrence QtWebView plugin project from Qt source

    usually error:
    1.static plugin for module “QtQuick” with name “your-module-name” has no metadata URI
    fix by add in pro file:QMAKE_MOC_OPTIONS += -Muri=$$URI #URI = your-module-name
    thanks from:https://github.com/wang-bin/QtAV/issues/368

    2.Plugin “your-module-name” is missing a classname entry
    fix by add in qmldir file: classname your-plugin—c++-name
    Reference http://doc.qt.io/qt-5.6/qtqml-modules-qmldir.html

    module “your-plugin-module-name” is not installed
    fix by: Qmldir file must in plugin qrc file, plugins.qmltypes need in the plugin dir and special in qmldir
  • 0 Votes
    10 Posts
    4k Views
    A

    dear @SGaist, thank you very much! It works perfect!

  • 0 Votes
    2 Posts
    1k Views
    SGaistS

    Hi,

    I may be wrong but AFAIK, Apple changed recently its policy about dynamic library in application bundle. Thus its likely related to that.

    You should bring this question to the interest mailing list, you'll find there Qt's developers/maintainers. This forum is more user oriented.