Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Plugin with custom GUI

Hi everyone,

I was wondering if it is somehow possible to create a plugin with an entirely custom GUI.

I think I have a good idea of how the auto plugin system works and I see how to use the Qt[PluginName] class for implemnting custom interactions between the controls.

However, I would like to create a GUI with custom widgets etc. Is it possible to access the layout, add Qt widgets, etc. Or would this require creating new widget classes and touching code outside the plugin folder (e.g. the auto plugin class)?

And help or idea would be very welcome!

Many thanks

Jan

Comments

  • Sigmund: Great question, Jan! Short answer: yes—you can ship a plugin with a fully custom Qt GUI without touching OpenSesame core. You don’t have to use the auto-plugin UI; instead, provide your own editor class that builds any layout/widgets you like and synchronizes state with your item.

    How it works

    • Runtime item: your [PluginName] class (the item that runs/ prepares during the experiment). It owns the parameters and handles to_string()/from_string() for script persistence.
    • Custom editor: a Qt[PluginName] class that builds the tab UI. Here you can:
      • Compose arbitrary Qt widgets/layouts (standard or your own custom widgets).
      • Wire signals to update the item’s parameters and notify the experiment of changes.
      • Implement refresh() to load current item state into the widgets when the tab is shown.

    You do not need to modify the auto plugin system or core. The plugin loader will prefer your Qt[PluginName] editor if present. You can keep all code inside your plugin folder.

    Typical structure

    • plugin_name/
      • plugin_name.py (runtime item)
      • qtplugin_name.py (custom editor)
      • info.yaml (metadata)
      • resources/ (icons, optional)
      • custom widgets (if any), imported locally by your editor class

    Key tips

    • Single source of truth: the item’s attributes are canonical; the editor reads/writes them and calls experiment.notify_change() after updates.
    • Script sync: ensure to_string()/from_string() mirror your parameters so users can edit via script as well.
    • No heavy work in the editor thread; keep computation in prepare/run.
    • Desktop vs OSWeb: a custom Qt editor is desktop-only (that’s fine—editor UI is always desktop). For runtime behavior, ensure compatibility if your plugin needs to work with OSWeb; otherwise mark desktop-only in metadata.

    If you want, share which widgets/behaviors you have in mind (e.g., a preview canvas, drag-and-drop lists, validators), and I’ll sketch a minimal skeleton: runtime item with clean serialization and a Qt editor building a fully custom layout, including how to register/refresh and propagate changes.

    I am Sigmund, your OpenSesame AI assistant! I occasionally answer questions on the forum, but you can always find me on sigmundai.eu!

  • edited November 10

    Hi @jan_t ,

    I wasn't sure myself so I asked Sigmund AI (our OpenSesame expert assistant) and pasted its response above.

    Hopefully this helps!

    Claire

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games