Find Jobs
Hire Freelancers

C++: Create a simple QT example to trigger a function in the main-thread by a signal from QThread

€8-30 EUR

Terminado
Publicado hace alrededor de 6 años

€8-30 EUR

Pagado a la entrega
I need a simple QT example to trigger a function in the main-thread by a signal from QThread. Use the Signal/Slot principle. As the base, just use in QT-Creator the standard QWidget application (QMainWindow). 1. start a new QThread. 2. in the QThread start a while(1) loop that should trigger every 3 seconds a funktion call in the MainThread. 3. The function in the MainThread is triggert by the trigger in the while(1) loop in the Qthread. This update the lable on [login to view URL] int count = 0; // counted label updates // The loop in the QThread: while(1) { count++; QThread::sleep(3); // trigger the function in Main-Thread here ! } // The function in the mainwindow-Thread(mainwindow): ui→label→setText(count); // update the label Thank you for looking, I look forward to hearing from you
ID del proyecto: 16678135

Información sobre el proyecto

4 propuestas
Proyecto remoto
Activo hace 6 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
Hello. I have experience with Qt and can help you. P.s. It's a promo price, because I am a novice on this platform.
€8 EUR en 1 día
5,0 (8 comentarios)
3,5
3,5
4 freelancers están ofertando un promedio de €19 EUR por este trabajo
Avatar del usuario
hi when you free just give me teamviewer and I will make it
€23 EUR en 1 día
5,0 (13 comentarios)
6,2
6,2
Avatar del usuario
Hi there, We can help you. This is quite a simple assignment. We have been working with Qt for more than 5 years. Looking forward to working with you. Thanks and best regards,
€14 EUR en 1 día
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de GERMANY
Frankfurt, Germany
5,0
8
Forma de pago verificada
Miembro desde nov 5, 2013

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.