Questions tagged [slot]
slot is a method callback used to handle a signal in some gui frameworks like Qt
slot
442
questions
1
vote
1
answer
73
views
how to build a slotted hierarchy of lit elements from one JSON data object
i want to build a hierarchy of lit elements - each one in the slot of its parent element - from one JSON data object.
e.g. library, books, pages
In my library I want to get the books assigned to a ...
1
vote
1
answer
49
views
I have an issue with this tag . The dropdown componet from laravel breeze starter kit doen't work
I have an issue with this tag .
The dropdown componet from laravel breeze starter kit doen't work
I thing the problem is the <x-slot name="trigger"> .
does anyone face this problem ...
0
votes
1
answer
65
views
Svelte capture element with slots
Svelte capture markup using slots and context
Given the follwing component markup:
# SCGDraw.svelte
<script lang="rs">
// some importsd
</script>
<svg xmlns="...&...
0
votes
0
answers
36
views
PyQt/Pyside: storing individual value in QPushButtons(or QWidgets in general) [duplicate]
Suppose I have some QPushButtons displayed in a QListWidget or QTableWidget. The QPushButtons connect to the same slot function that carries out the same action for their relative list item or table ...
0
votes
1
answer
752
views
Problems with Astro Components
I have a component in Astro like:
---
import features from "../config/features.json";
import FeaturesTemplate from "./FeaturesTemplate.astro";
---
<div class="mb-36 ...
1
vote
1
answer
94
views
If several different Vertex Buffers are bound to different input slots of the D3D11 pipeline, which one is used by the Draw() call?
Two somewhat related questions, really.
FIRST: If I have different - and differently sized - Vertex Buffers A and B bound to the pipeline input slots 0 and 1, then which one of them will be used in ...
0
votes
0
answers
307
views
PIXI Slot machine stop reel spinning at a specific symbol
I've integrated this in one of my projects.
https://codepen.io/k-olya/pen/WNXgQYV
Now I have modified it quite a bit according to my need like dynamic symbols etc. What I want is the scroll to stop at ...
0
votes
0
answers
19
views
how to implement delayslot in superscalar processors?
Back in early days, processor's pipeline was simple and branch prediction was not as accurate as now.So delay slot----statically schedule instructions by compilers,seemly was an efficient choice.But ...
-2
votes
1
answer
108
views
Use of Qtimer before event loop started
I have created a simple, single thread, app in Qt6. My sole class creates a couple of timers and prints a qDebug message in the timeout slot. These messages never print.
My class is created before ...
0
votes
1
answer
555
views
Rendering the contents of a slot into multiple places inside of a webcomponent
The Problem
I am using Angular and its Angular Elements to generate Webcomponents. I want clients to be able to pass these webcomponents icons into slots, so that the client can determine what the ...
0
votes
1
answer
110
views
Why the intruction ReadAll() block the serial port reading?
I'm trying to read double sent by arduino on the serial port with an qt program. But i have a problem: i connected the signal readyRead to a slot named newData, in this slot when i execute the ...
0
votes
2
answers
107
views
How to bind on properties of a named slot
Referring to this link, i am trying to implement the same example of Scoped Slotsprovided in the url.
as shown in the following code snippet, i created the slot named scopedSlot and specified some ...
1
vote
1
answer
592
views
How to get index in Vue slots
In the parent component I render a Carousel component (child component) and pass the content of the slot inside.
Inside the carousel component, I want to get the index of the slot content and pass it ...
1
vote
2
answers
561
views
Strange compile error in vue by use template for slot
I had a strange problem. My vue compiler don't want to render default named slot of child.
Error: Codegen node is missing for element/if/for node. Apply appropriate transforms first.
My VSCode also ...
1
vote
1
answer
153
views
Pass render function to slot in Vue3
I have a component TopBar
<script setup lang="ts">
import { h } from 'vue';
const props = withDefaults(defineProps<{ height?: number }>(), { height: 50 });
const spacer = () =&...