Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt Program start on bootup and start GUI interaction automatically

Qt Program start on bootup and start GUI interaction automatically

Scheduled Pinned Locked Moved Solved Mobile and Embedded
qtmainwaindowraspberry pi3spiinteractive gui
6 Posts 4 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vishbynature
    wrote on last edited by
    #1

    hello,
    I have two questions.

    1. how to to start my Qt program on startup of my Raspberry pi? (don't want to see the boot process.)
    2. how to start Gui interaction as soon as gui is innitiated?(Dont want to use buttons)

    my work involve, raspberry pi which communicate with stm32 controler by SPI protocol
    raspberry is master and stm32 is slave. slave collect data from differnt sensors and give it back to raspberry and ii is shown on GUI on a button click .
    As said above i want to start this program when raspberry is powered on, after GUI start i should get readings on screen no external signal like Gui button clicked that i am using now and i am writing code in mainwindow and not in QApplication.

    1 Reply Last reply
    1
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      You can't start an application before the boot process is done. You might be able to hide some stuff with some sort of splash screen but that's all.

      After that, you have to setup whatever tool is used for handling the various services start/stop and include your application there.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      A 1 Reply Last reply
      3
      • SGaistS SGaist

        Hi and welcome to devnet,

        You can't start an application before the boot process is done. You might be able to hide some stuff with some sort of splash screen but that's all.

        After that, you have to setup whatever tool is used for handling the various services start/stop and include your application there.

        A Offline
        A Offline
        Andrex_Qt
        wrote on last edited by
        #3

        @SGaist
        what about second question? this is the same query as i have.
        one of my dialogs is displaying data collected on a button pressed event. i want that dialog to start collecting data as soon as it is executed.

        jsulmJ 1 Reply Last reply
        1
        • A Andrex_Qt

          @SGaist
          what about second question? this is the same query as i have.
          one of my dialogs is displaying data collected on a button pressed event. i want that dialog to start collecting data as soon as it is executed.

          jsulmJ Online
          jsulmJ Online
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Andrex_Qt The second question was answered as well. This is completely unrelated to Qt and depends on your Linux distribution and desktop environment/window manager you're using. So, you will need to provide more details to get an answer. Or, which is better, you ask the Linux distribution community.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          V 1 Reply Last reply
          2
          • jsulmJ jsulm

            @Andrex_Qt The second question was answered as well. This is completely unrelated to Qt and depends on your Linux distribution and desktop environment/window manager you're using. So, you will need to provide more details to get an answer. Or, which is better, you ask the Linux distribution community.

            V Offline
            V Offline
            vishbynature
            wrote on last edited by vishbynature
            #5

            @jsulm
            ok i am not able to understand Answer to second question. Details about my work as follows:
            for now only includes 1 window the MainWindow
            i use C API for SPI communication and files bcm2835.c and bcm2835.h
            i have written Spi initialization code block in constructor of MainWindow.
            SPI data transfer function is written in button_clicked() private slot.
            so you get data when you press button.
            I want to not use button.
            As soon as MainWindow GUI appears I should start SPI data transfer.
            Is there a way?

            jsulmJ 1 Reply Last reply
            1
            • V vishbynature

              @jsulm
              ok i am not able to understand Answer to second question. Details about my work as follows:
              for now only includes 1 window the MainWindow
              i use C API for SPI communication and files bcm2835.c and bcm2835.h
              i have written Spi initialization code block in constructor of MainWindow.
              SPI data transfer function is written in button_clicked() private slot.
              so you get data when you press button.
              I want to not use button.
              As soon as MainWindow GUI appears I should start SPI data transfer.
              Is there a way?

              jsulmJ Online
              jsulmJ Online
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @vishbynature said in Qt Program start on bootup and start GUI interaction automatically:

              As soon as MainWindow GUI appears I should start SPI data transfer.

              Sure. You can use QTimer to trigger the transfer.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              3

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved