Skip to content
QtWS25 Last Chance
  • 0 Votes
    5 Posts
    3k Views
    McLionM
    @Konstantin-Tokarev said in Multiple, identical instances of WebView, dynamically created: Approach with multiple views is optimal when you want all those pages to be present on screen at the same time, or have indpendent "tabs" like in a browser with separate navigation histories and possibility to do background work like playing music This is about what we do. The screen is divided into various sections that are used for various menus, sub-menus, lists ... and more. These need to be loaded and shown/hidden separately or at the same time. The GUI is completely based on webpages with html/css/php/js. I have it working pretty smart now, though there are some limits like a key can not be sent to a webGUI that is hidden for instance, which would be great to preload a GUI section before showing.
  • 0 Votes
    3 Posts
    5k Views
    VagabondV
    @kshegunov Thanks I will try that.
  • 0 Votes
    8 Posts
    4k Views
    C
    @SGaist Thanks, I looked into QSignalMapper, but it seems to have limitations, for example you can only pass one parameter and you can really just map one slot/signal. I could probably make it work by passing a structure (and register that with the meta compiler), and then use multiple QSignalMappers... but, at least for my case, I find that creating my own object to be much simpler both to implement and to read.
  • 0 Votes
    2 Posts
    2k Views
    p3c0P
    Hi @neovius and Welcome, When i change the backlight slider, the signal is emitted, and received. but i still get the warning when starting the application : That is because you are creating QML component before setting the context property and thus naturally it wont be able to access that method at very first time. http://doc.qt.io/qt-5/qtqml-cppintegration-exposecppattributes.html#exposing-properties http://doc.qt.io/qt-5/qtqml-cppintegration-exposecppattributes.html#exposing-methods-including-qt-slots
  • 0 Votes
    12 Posts
    11k Views
    KH-219DesignK
    Another post recently linked back to this one, so I wanted to augment this with a couple more relevant links for setting up a manageable, maintainable qmake SUBDIRS structure: https://www.toptal.com/qt/vital-guide-qmake https://wiki.qt.io/QMake-top-level-srcdir-and-builddir Which helped me set up a working example: https://github.com/219-design/qt-qml-project-template-with-ci/blob/6af6488d74e1dc97a/main_gui.pro
  • 0 Votes
    2 Posts
    2k Views
    mrjjM
    @pmh4514 maybe you can use the QDesktopWidget int QDesktopWidget::screenNumber(const QWidget * widget = 0) const Returns the index of the screen that contains the largest part of widget, or -1 if the widget not on a screen.
  • 0 Votes
    18 Posts
    10k Views
    S
    @SGaist Thank you very much for your tips! I probably should give up on the serial thread. It is beyond my ability to play with that problem.