To prevent the quasar tooltip from functioning, use the CSS code provided for the no-pointer-events class:
.no-pointer-events {
pointer-events: all !important;
}
See an example below:
<template>
<q-icon
@mouseover="showTooltip"
name="o_live_help"
size="xs"
class="icon"
>
<q-tooltip
no-parent-event
@mouseout="hideTooltip"
v-model="tooltip"
max-width="500px"
transition-show="scale"
transition-hide="scale"
anchor="center middle"
self="center middle"
class="more glass text-on-dark"
>
<div class="text-body2 line-height q-pa-lg">
{{ sampleText }}
</div>
</q-tooltip>
</q-icon>
</template>
<script setup>
import { ref } from "vue"
const tooltip = ref(false)
const showTooltip = () => {
tooltip.value = true
}
const hideTooltip = () => {
tooltip.value = false
}
const sampleText = "Quasar is super cool"
</script>
<style lang="scss">
.line-height {
line-height: 28px;
text-align: justify;
}
.no-pointer-events {
pointer-events: all !important;
}
</style>