Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [slot]

slot is a method callback used to handle a signal in some gui frameworks like Qt

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 ...
html_css_js's user avatar
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 ...
kate sarant's user avatar
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="...&...
Hefeust CORTES's user avatar
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 ...
user2526586's user avatar
  • 1,152
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 ...
carloslopez's user avatar
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 ...
kppodd's user avatar
  • 15
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 ...
Fahad Hussain's user avatar
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 ...
zyh_idler's user avatar
-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 ...
TSG's user avatar
  • 4,506
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 ...
Philipp Doerner's user avatar
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 ...
Tony Abadia's user avatar
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 ...
Amrmsmb's user avatar
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 ...
user16589580's user avatar
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 ...
Aleks_Andr_19's user avatar
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 = () =&...
Kindzoku's user avatar
  • 1,400

15 30 50 per page
1
2 3 4 5
30